Problem with script.
#7

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...

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(playerid0xFFFFFF,"Koristenje: /setlevel (Ime/ID) (Level)");
            else if(
level 5) return SendClientMessage(playerid0xFFFFFF,"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;

I made this when you told me that i don't need to use brackets in it.

PHP код:
C:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(415) : warning 217loose indentation
C
:\Users\Dino Covic\Desktop\SAMP Server\gamemodes\Server_Skripta.pwn(420) : error 029invalid expressionassumed zero
Pawn compiler 3.2.3664              Copyright 
(c1997-2006ITB CompuPhase
1 Error

And i get this error!
Reply


Messages In This Thread
Problem with script. - by NoDi522 - 17.02.2015, 18:42
Re: Problem with script. - by CalvinC - 17.02.2015, 19:01
Re: Problem with script. - by HazardouS - 17.02.2015, 19:17
Re: Problem with script. - by NoDi522 - 18.02.2015, 06:08
Re: Problem with script. - by Scrillex - 18.02.2015, 06:56
Re: Problem with script. - by PaulDinam - 18.02.2015, 06:58
Re: Problem with script. - by NoDi522 - 18.02.2015, 07:24
Re: Problem with script. - by NoDi522 - 18.02.2015, 07:30
Re: Problem with script. - by PaulDinam - 18.02.2015, 07:40
Re: Problem with script. - by NoDi522 - 18.02.2015, 07:42

Forum Jump:


Users browsing this thread: 2 Guest(s)