new playerping = GetPlayerPing(playerid); if playerping => 500 |
public OnPlayerConnect(playerid)
{
new pPing = GetPlayerPing(playerid);
if(pPing => 500) return Kick(playerid);
return 1;
}
pawn Код:
|
C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(64) : warning 217: loose indentation C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : warning 211: possibly unintended assignment C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : error 029: invalid expression, assumed zero C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : warning 215: expression has no effect C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : error 001: expected token: ";", but found ")" C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : error 029: invalid expression, assumed zero C:\Users\Lewis\Desktop\ALLGTA\*\gamemodes\DizzysTe stScript.pwn(65) : fatal error 107: too many error messages on one line |
public OnPlayerConnect(playerid) { SendClientMessage(playerid, RED, "Welcome"); new pPing = GetPlayerPing(playerid); if(pPing => 500) return Kick(playerid); return 1; return 1; } |
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, RED, "Welcome");
if(GetPlayerPing(playerid) => 500)
{
SendClientMessage(playerid, RED, "Kicked due to: Ping exceeded.");
return Kick(playerid);
}
return 1;
}
public OnPlayerConnect(playerid) { SendClientMessage(playerid, RED, "Welcome"); if(GetPlayerPing(playerid) => 500) { SendClientMessage(playerid, RED, "Kicked due to: Ping exceeded."); return Kick(playerid); } return 1; } |
C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : warning 211: possibly unintended assignment C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : error 022: must be lvalue (non-constant) C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : error 029: invalid expression, assumed zero C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : warning 215: expression has no effect C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : error 001: expected token: ";", but found ")" C:\Users\Lewis\Desktop\ALLGTA\Beginnerscript 2\gamemodes\DizzysTestScript.pwn(63) : fatal error 107: too many error messages on one line |
if(GetPlayerPing(playerid) => 500) |
if(GetPlayerPing(playerid) >= 500) // This has been changed.