29.03.2011, 11:48
pawn Код:
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8243) : error 029: invalid expression, assumed zero
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8243) : warning 215: expression has no effect
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8243) : error 001: expected token: ";", but found "if"
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8245) : error 029: invalid expression, assumed zero
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8245) : warning 215: expression has no effect
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8245) : error 001: expected token: ";", but found "if"
C:\Users\Marko\Desktop\Server\gamemodes\XFS.pwn(8247) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
5 Errors.
pawn Код:
CMD:setgravity(playerid, params[])
{
new Gravity, string[256];
#pragma unused params
if(PVar[playerid][pLevel] < 4)
{
else if (sscanf(params, "d", Gravity)) //8243
{
else if(Gravity > 50 || Gravity < -50) //8245
{
else //8247
{
SetGravity(Gravity);
format(string, sizeof(string), "*** Administrator %s has set the gravity to %d", pName(playerid), Gravity);
SendClientMessageToAll(COLOR_YELLOW, string);
}
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR : Gravity cant be above 50 or under -50!");
}
else return SendClientMessage(playerid, COLOR_RED, "* Usage : /setgravity [50 to -50]");
}
else return SendClientMessage(playerid, COLOR_RED, "ERROR : You have to be Administrator level 4 to use this command!");
return true;
}