Problem - Nicholas. - 17.01.2012
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?
Re: Problem -
Bogdan1992 - 17.01.2012
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);
Re: Problem -
Babul - 17.01.2012
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);
Re: Problem - Nicholas. - 17.01.2012
Thank you, I've corrected it. Now compiles without errors.