13.07.2014, 00:33
hello guys made my first proper command lol i know its pathetic gota start somewhere
it seems to be ok sort of.. but got this indentation error where the else then starts
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10075) : warning 217: loose indentation
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(1007
: warning 217: loose indentation
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10082) : error 010: invalid function or declaration // its return0
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
heres the command
CMD:0penlocker(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
{
if(PlayerInfo[playerid][pDonator] >= 1)
{
GivePlayerValidAdminWeapon(playerid, 27, 99999);
GivePlayerValidAdminWeapon(playerid, 29, 99999);
GivePlayerValidAdminWeapon(playerid, 31, 99999);
}
else return SendClientMessage(playerid, COLOR_GREY, "You are not near to the locker");//error here 10075
}
else return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP");
{//Fishplace at the bigwheel
return 1;
}
}
return 0;
}
http://pastebin.com/KnuAv1pA

it seems to be ok sort of.. but got this indentation error where the else then starts
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10075) : warning 217: loose indentation
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(1007

C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10082) : error 010: invalid function or declaration // its return0
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
heres the command
CMD:0penlocker(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
{
if(PlayerInfo[playerid][pDonator] >= 1)
{
GivePlayerValidAdminWeapon(playerid, 27, 99999);
GivePlayerValidAdminWeapon(playerid, 29, 99999);
GivePlayerValidAdminWeapon(playerid, 31, 99999);
}
else return SendClientMessage(playerid, COLOR_GREY, "You are not near to the locker");//error here 10075
}
else return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP");
{//Fishplace at the bigwheel
return 1;
}
}
return 0;
}
http://pastebin.com/KnuAv1pA