Hey ich mach mir ein Selfmade und nun habe ich ein problem bei dem /freeze befehl
ich bekomme da 4 Errors
Der Code:
Code
ocmd:freeze(playerid, params[])
{
if(!isPlayerAnAdmin(playerid,1))
{
SendClientMessage(playerid,ROT,"***********************.");
return 1;
}
new PlayerId;
if(sscanf(params, "u", PlayerId))
{
SendClientMessage(playerid,ROT, "***********************************");
return 1;
}
if(PlayerId == INVALID_PLAYER_ID)
{
SendClientMessage(playerid,ROT, "***********************************.");
return 1;
}
TogglePlayerControllable(PlayerId, 0);
new String[255];
format(String, sizeof(String), "*******************************************: %s (%d).", Player[playerid][Name], playerid);
SendClientMessage(PlayerId,ROT, String);
format(String, sizeof(String), "************: %s (%d) **************y.", Player[PlayerId][Name], PlayerId);
SendClientMessage(playerid,ROT, String);
return 1;
}
Alles anzeigen
und die Errors:
Code
C:\Users\admin\Desktop\New folder\gamemodes\self.pwn(208) : error 017: undefined symbol "Player"
C:\Users\admin\Desktop\New folder\gamemodes\self.pwn(208) : warning 215: expression has no effect
C:\Users\admin\Desktop\New folder\gamemodes\self.pwn(208) : error 001: expected token: ";", but found "]"
C:\Users\admin\Desktop\New folder\gamemodes\self.pwn(208) : error 029: invalid expression, assumed zero
C:\Users\admin\Desktop\New folder\gamemodes\self.pwn(208) : 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.
Alles anzeigen