18.02.2015, 07:24
Hey guyz but i have a new problem. Everything in the script works now and when i launch samp and try to type the command,nothing shows if u know what i mean...
I made this when you told me that i don't need to use brackets in it.
And i get this error!
PHP код:
CMD:PostaviAdmina(playerid,params[])
{
new id,level,msg[128],msg2[128],name[MAX_PLAYER_NAME];
if(IsPlayerAdmin(playerid))
if(sscanf(params,"ud",id,level)) return SendClientMessage(playerid, 0xFFFFFF,"Koristenje: /setlevel (Ime/ID) (Level)");
else if(level > 5) return SendClientMessage(playerid, 0xFFFFFF,"Error: Maximalni level admin je 5.");
else
PlayerInfo[id][pAdministrator] = level;
format(msg,sizeof(msg),"Cestitamo! Sada ste admin na levelu %d",level);
SendClientMessage(id,0xFFFFFF,msg);
GetPlayerName(id,name,sizeof(name));
format(msg2,sizeof(msg2),"Postavili ste admina %s na levelu %d", name,level);
SendClientMessage(playerid,0xFFFFFF,msg2);
else
SendClientMessage(playerid,0xFFFFFF,"Error: Nemate dozvolu za tu komandu!");
return 1;
}
PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(415) : warning 217: loose indentation
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(420) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.