07.08.2016, 07:57
hey guys i makeadmin command but i cant fix error
Code:
CMD:postaviadmina(playerid,params[]) { new id,lvl,str[80],str1[80]; if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, -1,"Samo Owner"); if(sscanf(params,"ud",id,lvl)) return SendClientMessage(playerid, -1,"/postaviadmina (id) (lvl)]"); if(id == INVALID_PLAYER_ID) return SendClientMessage(playerid, -1,"Taj igrac nije online"); if(lvl == GetPVarInt(id,"Admin")) return SendClientMessage(playerid, -1,"Igrac je vec taj lvl"); SetPVarInt(id,"Admin", lvl); format(str,80,"%s vam je dao admin nivo %d,Ime(playerid),lvl); SendClientMessage(id,-1,str); format(str1,80,"Dali ste %s-u admin nivo %d",Ime(id),lvl); SendClientMessage(playerid,-1,str1); return true;helpCode:C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(67) : error 021: symbol already defined: "PlayerInfo" C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(682) : error 037: invalid string (possibly non-terminated string) C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(682) : error 017: undefined symbol "vam" C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(682) : error 017: undefined symbol "je" C:\Users\PC\Desktop\Dejanovi folderi\Black Angeles Roleplay\gamemodes\BARP.pwn(682) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
}