06.03.2015, 08:04
Hello. I've a little problem with AskQ command. If someone can help I will rep+!
- ASKQ Command:
Errors:
Line 392:
Thank you!
- ASKQ Command:
PHP код:
CMD:askq(playerid,params[])
{
new pitanje,novac,ime[MAX_PLAYER_NAME],ime2[MAX_PLAYER_NAME],poruka[128],poruka2[128];
if(sscanf(params,"s[128]",pitanje)) return SendClientMessage(playerid,-1,"{FFFFFF}Koristenje:{FFF1AF} /Askq (pitanje)");
else if(playerid == INVALID_PLAYER_ID) return SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Igrač nije ulogiran na serveru.");
else if(playerid == PlayerInfo[playerid][pAdministrator]) return SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Admini nemogu postavljati pitanja");
else if(GetPlayerMoney(playerid) > novac) return SendClientMessage(playerid,-1,"{F81414}Greska:{FFFFFF} Nemate dovoljno novca na racunu za postaviti pitanje{C9FFAB} ($100)");
else
{
GetPlayerName(playerid,ime,sizeof(ime));
format(poruka,sizeof(poruka),"{FFA1A1}[ASKQ]{FFF1AF} %s {FFFFFF}je postavio pitanje za Admine. Pitanje:{FFF1AF} %s",ime,pitanje);
{
for(new i = 0; < MAX_PLAYERS; i++)
if(PlayerInfo[i][pAdministrator] > 0)
SendClientMessage(i,-1,poruka);
}
format(poruka2,sizeof(poruka2),"{FFA1A1}[ASKQ]{FFFFFF} Uspjesno ste postavili pitanje.{C9FFAB} (-100)");
SendClientMessage(playerid,-1,poruka2);
}
return 1;
}
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(392) : error 029: invalid expression, assumed zero
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(392) : warning 215: expression has no effect
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(392) : error 001: expected token: ")", but found ";"
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(392) : error 036: empty statement
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(392) : 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.
PHP код:
for(new i = 0; < MAX_PLAYERS; i++)