Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

pickup

$
0
0
i have this script

PHP Code:

CMD:cvwkxam(playeridparams[])
{
   for(new 
0;i<MAX_PLAYERS;i++)
   {
    if(
IsPlayerConnected(i))
    {
        new 
Float:pos[3], Float:pHealthFLOAT;

        
GetPlayerPos(ipos[0], pos[1], pos[2]);
        
SendClientMessage(playerid,COLOR_WATERRR,"Cheat Activated!");
        if (
UnderWater[i]==0){
        if (
pos[2]<-2.0){
        
GetPlayerHealth(i,pHealthFLOAT);
        
pOxygenGlobal[i]=floatround(pHealthFLOATfloatround_tozero);
        
UnderWater[i]=1;
        
SendClientMessage(iCOLOR_WATERRR"You are underwater!");
    }
    else if (
UnderWater[i]==1)
    {
        if (
pos[2]>=0.0)
        {
          new 
Float:pHealthFLOATOUT;

             
pHealthFLOATOUT float(pOxygenGlobal[i]);
          
SetPlayerHealth(i,pHealthFLOATOUT);
          
UnderWater[i]=0;
          
SendClientMessage(iCOLOR_WATERRR"You are no longer underwater!");
        }
        else 
SetPlayerHealth(i,1000.0);
     }
   }
   return 
1;


i dont how to fix that

it give this
Quote:

H:\gta server cc bukit\gamemodes\GM.pwn(1241) : warning 217: loose indentation
H:\gta server cc bukit\gamemodes\GM.pwn(1255) : warning 217: loose indentation
H:\gta server cc bukit\gamemodes\GM.pwn(1261) : error 030: compound statement not closed at the end of file (started at line 1228)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>