[help] With /buygun
#1

Hey,

I got these errors:


pawn Код:
C:\Users\Stefan Dorst\Desktop\NonName Rp\gamemodes\SRP.pwn(14125) : error 001: expected token: ")", but found "{"
Pawn compiler 3.2.3664     Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

with this command:

pawn Код:
command(buygun, playerid, params[])
{
    #pragma unused params
    if(IsPlayerInRangeOfPoint(playerid, 20, 295.7692, -80.8107, 1001.5156)
    {
        ShowPlayerDialog(playerid, 969, DIALOG_STYLE_LIST, "Weapon Selection", "Katana (30 materials)\nCane (30 materials)\nPool Cue (33 materials)\nBaseball Bat (35 materials)\nShovel (50 materials)\nColt 45 (250 materials)\nSilenced Pistol (300 materials)\nPump Action Shotgun (550 materials)\nDesert Eagle (680 materials)\nMP5 (850 materials)\nMicro SMG (900 materials)\nAK-47 (1500 materials)\nM4A1 (2000 materials)\nSniper Rifle (2450 materials)\nCombat Shotgun (2550 materials)", "Select", "Cancel");
    }
    return 1;
}
Reply
#2

pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 295.7692, -80.8107, 1001.5156)
Should be:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 295.7692, -80.8107, 1001.5156))
Hope that helped !
Reply
#3

I think you are missing a )
if(IsPlayerInRangeOfPoint(playerid, 20, 295.7692, -80.8107, 1001.5156))

EDIT: He beat me to it :L
Reply
#4

You forgot one bracket! It must be:
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, 20, 295.7692, -80.8107, 1001.5156))
Reply
#5

Thanks boys,

Anyone wanna be my private helper xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)