Problem
#1

Okay, I am trying to add a pickup.

This what I have:

pawn Код:
new rules;

Under "public OnGameModeInit()" I have this.

rules = CreatePickup(1239, 1677.1301,-2327.2786,13.5469,359.2570, -1); (THIS IS LINE 100)

Under "OnPlayerPickUpPickup" I have this.
    "if(pickupid == rules)
    {
        ShowPlayerDialog(playerid,1,DIALOG_STYLE_LIST,"
Rules","1. Do not deathmatch other players\n2. Do insult or flame other players\r\n3. Do not disrespect administration","Okay","");
    }

But I keep getting these errors

Quote:

C:\Users\Toshiba\SA-MP\SA-MP Scripting\-------\gamemodes\---------.pwn(100) : warning 213: tag mismatch

Can anyone please help me?
Reply
#2

Your forgot to add the type, here https://sampwiki.blast.hk/wiki/PickupTypes

CreatePickup(model, type, Float:X, Float:Y, Float:Z, Virtualworld)

CreatePickup(1239, type, 1677.1301,-2327.2786,13.5469, -1);
Reply
#3

always have the wiki page open when scripting: https://sampwiki.blast.hk/wiki/CreatePickup
parameters: (model, type, Float:X, Float:Y, Float:Z, Virtualworld)
you inserted some too much parameters, your coordinates are:
CreatePickup(1239, 1677.1301,-2327.2786,13.5469,359.2570, -1); (THIS IS LINE 100)
and indeed the 1239 as model. the 359,2570 looks like a rotation, its not needed here. you want the pickup being picked up on foot? then type 23 is the best way to stick to:
pawn Код:
CreatePickup(1239, 23, 1677.1301, -2327.2786, 13.5469, -1);
Reply
#4

Thank you, I've corrected it. Now compiles without errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)