/pks cmd problem
#9

PHP код:
CMD:pks(playerid,params[])
{
    
SendClientMessage(playeridCOLOR_ORANGE"Current Peace Keepers Online..");
    new 
count=0;
    new 
string[256], pname[MAX_PLAYER_NAME];
    foreach(
Playeri){
    if (
IsPlayerConnected(i)){
    if (
pklvl[i] == 1){
     
GetPlayerName(i,pname,sizeof(pname));
     
format(string128"%s - ({FFCC00}Peace Keeper{FFFFFF})"pname);
     
SendClientMessage(playeridCOLOR_WHITEstring);
     
count++;}
    }
    }
    if(
count==0)
    
SendClientMessage(playeridCOLOR_WHITE,"There are currently no pk members online.");
    return 
1;

See when i put this code it gives me error

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 017undefined 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 001expected 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 107too many error messages on one line
Compilation aborted
.
Pawn compiler 3.2.3664              Copyright (c1997-2017ITB CompuPhase
5 Errors

Even it doesn't Contain Iter_Clear and when i removed this code my script compile successfully but i want /pks cmd to see online pks.
Reply


Messages In This Thread
/pks cmd problem - by Wherethescripters - 30.12.2017, 08:33
Re: /pks cmd problem - by Ritzy2K - 30.12.2017, 08:55
Re: /pks cmd problem - by Wherethescripters - 30.12.2017, 08:57
Re: /pks cmd problem - by RakiT - 30.12.2017, 08:59
Re: /pks cmd problem - by Wherethescripters - 30.12.2017, 09:00
Re: /pks cmd problem - by RakiT - 30.12.2017, 09:03
Re: /pks cmd problem - by Ritzy2K - 30.12.2017, 09:06
Re: /pks cmd problem - by Wherethescripters - 30.12.2017, 09:13
Re: /pks cmd problem - by Wherethescripters - 30.12.2017, 09:15
Re: /pks cmd problem - by RakiT - 30.12.2017, 09:26

Forum Jump:


Users browsing this thread: 1 Guest(s)