30.12.2017, 09:15
PHP код:
CMD:pks(playerid,params[])
{
SendClientMessage(playerid, COLOR_ORANGE, "Current Peace Keepers Online..");
new count=0;
new string[256], pname[MAX_PLAYER_NAME];
foreach(Player, i){
if (IsPlayerConnected(i)){
if (pklvl[i] == 1){
GetPlayerName(i,pname,sizeof(pname));
format(string, 128, "%s - ({FFCC00}Peace Keeper{FFFFFF})", pname);
SendClientMessage(playerid, COLOR_WHITE, string);
count++;}
}
}
if(count==0)
SendClientMessage(playerid, COLOR_WHITE,"There are currently no pk members online.");
return 1;
}
PHP код:
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(498) : error 001: expected token: "-identifier-", but found "("
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(539) : error 017: undefined symbol "Iter_Clear"
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(539) : warning 215: expression has no effect
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(539) : error 001: expected token: ";", but found ")"
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(539) : error 029: invalid expression, assumed zero
E:\SAMP-SCRIPTS\GTA San Andreas\Latest scripts\pG\pG For Testing (Latest)\pG Clan's\pawno\include\FCNPC.inc(539) : fatal error 107: too many error messages on one line
Compilation aborted.
Pawn compiler 3.2.3664 Copyright (c) 1997-2017, ITB CompuPhase
5 Errors.