31.03.2012, 15:32
Why this command dont work in my trucking server![Huh?](images/smilies/confused.gif)
get this eerors
![Huh?](images/smilies/confused.gif)
pawn Код:
CMD:giveallmoney(playerid, params[])
{
if(isnull(params)) return SendClientMessage(playerid, 0xCC0000AA, "USAGE: /giveallcash <amount>");
new money = strval(params);
for(new i=0; i < MAX_PLAYERS; i++) if(IsPlayerConnect(i)) CallRemoteFunction("GiveMoney", "ii", i, money);
new string[128], aName[MAX_PLAYER_NAME];
GetPlayerName(playerid, aName, sizeof(aName));
format(string, sizeof(string), "%s has given everyone $%d!", aName, money)
SendClientMessageToAll(0x00CCCCAA, string);
return 1;
}
pawn Код:
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1504) : error 017: undefined symbol "IsPlayerConnect"
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1508) : error 001: expected token: ";", but found "-identifier-"
C:\Documents and Settings\rado\Desktop\PPC_Trucking6\gamemodes\PPC_Trucking.pwn(1513) : warning 203: symbol is never used: "ret_memcpy"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
2 Errors.