can someone help fix this simple code please
#1

sup guys trying to make a code for the first time in years can someone have a look see where im going wrong


CMD:0penlocker(playerid, params[])
{
if(PlayerInfo[playerid][pDonator] >= 1)
{
GivePlayerValidAdminWeapon(playerid, 27, 99999);
GivePlayerValidAdminWeapon(playerid, 29, 99999);
GivePlayerValidAdminWeapon(playerid, 31, 99999);
{
if(IsPlayerInRangeOfPoint(playerid,1.0,403.8266,-2088.7598,7.8359) || IsPlayerInRangeOfPoint(playerid,1.0,398.7553,-2088.7490,7.8359))
}
return 1;
}
Reply
#2

Try this and tell me if something goes wrong.
pawn Код:
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");
    }
    else return SendClientMessage(playerid,COLOR_GREY,"You are not a VIP");
}
Reply
#3

cheers mate will do
gona slap it in now
Reply
#4

C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10084) : warning 217: loose indentation
C:\Users\Jess\Desktop\Pads GM\gamemodes\NBRP.pwn(10087) : warning 209: function "cmd_0penlocker" should return a value
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Warnings.



and going for tea back later
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)