Need help with spawning a vehicle
#2

There are many unneded 'if' with the same clause repeated in this script, check out:

pawn Код:
if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_ORANGE, "** You are not logged in, please login first.");
    if(PlayerAcc[playerid][Admin] == 3)
    {
        if(PlayerAcc[playerid][Log] == 0) return SendClientMessage(playerid, COLOR_RED, "** You are not logged in, please login first.");
        if(PlayerAcc[playerid][Admin] == 0) return SendClientMessage(playerid, -1,""orange"** Sorry, admins level 3+ can use that command!");
        if(PlayerAcc[playerid][Admin] >= 3)
Then, you're probably with an higher admin level then 3, but this 'if' won't let you pass:

pawn Код:
if(PlayerAcc[playerid][Admin] == 3)
    {
Correct it with '>= 3'. And also correct the rest of the code!
Reply


Messages In This Thread
Need help with spawning a vehicle - by mickos - 03.06.2014, 21:46
Re: Need help with spawning a vehicle - by SimonItaly - 03.06.2014, 22:21
Re: Need help with spawning a vehicle - by Threshold - 03.06.2014, 22:29
Re: Need help with spawning a vehicle - by KillerStrike23 - 03.06.2014, 22:32
Re: Need help with spawning a vehicle - by jessejanssen - 03.06.2014, 23:09

Forum Jump:


Users browsing this thread: 1 Guest(s)