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;
}
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. |
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;
}
C:\Users\cyber\Desktop\pawn sublime\yay\GM.pwn(3454) : error 030: compound statement not closed at the end of file (started at line 3424) Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase |
CMD:cvwkxam(playerid, params[])
{
for(new i = 0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)) <<< the error line
{
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;
}
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;
}