SA-MP Forums Archive
createpickup problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: createpickup problem (/showthread.php?tid=504080)



createpickup problem - Slicebook - 01.04.2014

Код:
error 010: invalid function or declaration
warning 204: symbol is assigned a value that is never used: "intibelep2"
Код:
#define DIALOG_INTIBELEP2 421


new intibelep2;
intibelep2 = CreatePickup(1274,52,1000.4108,-919.9883,42.3281); //<<< warning

if(pickupid == intibelep2) <<errror
{	
	ShowPlayerDialog(playerid, DIALOG_INTIBELEP2, DIALOG_STYLE_LIST, "Bolt", "Belйp", "Ok", "Mйgse");
	}
}


else if( dialogid == DIALOG_INTIBELEP2 )
				{
						if( !response )
						{
						return 1;
						}
						if( listitem == 0)
						{
							SetPlayerInterior(playerid, 4);
						}
				}



Re: createpickup problem - azzerking - 01.04.2014

Are you putting this under OnPlayerPickup or OnDialogResponse?

cause it looks like your using code which belongs in 2 different sections?

Please post your full code for each section