05.05.2014, 15:07
Hello i have a problem with this.
This is the line.
And this is the problem
PHP код:
dcmd_kill(playerid, params[])
{
#pragma unused params
if(TEAM_COP[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Law Emergent Cant Use This Command");
}
SetPlayerHealth(playerid, 0);
new string[256], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "%s has used command '/kill'.", pname);
SendClientMessageToAll(COLOR_MAROON, string);
}
return 1;
}
PHP код:
if(TEAM_COP[playerid] == 1)
PHP код:
C:\Users\Arlind\Desktop\1v1 DeathMatch Server (V 1) - Copy\gamemodes\Dm.pwn(465) : error 029: invalid expression, assumed zero
C:\Users\Arlind\Desktop\1v1 DeathMatch Server (V 1) - Copy\gamemodes\Dm.pwn(465) : error 029: invalid expression, assumed zero
C:\Users\Arlind\Desktop\1v1 DeathMatch Server (V 1) - Copy\gamemodes\Dm.pwn(465) : warning 215: expression has no effect
C:\Users\Arlind\Desktop\1v1 DeathMatch Server (V 1) - Copy\gamemodes\Dm.pwn(465) : error 001: expected token: ";", but found "]"
C:\Users\Arlind\Desktop\1v1 DeathMatch Server (V 1) - Copy\gamemodes\Dm.pwn(465) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.