25.05.2017, 14:29
(
Последний раз редактировалось asri; 25.05.2017 в 15:55.
Причина: change topic
)
i have this script
i dont how to fix that
it give this
PHP код:
CMD:cvwkxam(playerid, params[])
{
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i))
{
new Float:pos[3], Float:pHealthFLOAT;
GetPlayerPos(i, pos[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(pHealthFLOAT, floatround_tozero);
UnderWater[i]=1;
SendClientMessage(i, COLOR_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(i, COLOR_WATERRR, "You are no longer underwater!");
}
else SetPlayerHealth(i,1000.0);
}
}
return 1;
}
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 122 Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. |