SA-MP Forums Archive
A little Problem :O - 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: A little Problem :O (/showthread.php?tid=390346)



A little Problem :O - AwokenNeoX - 05.11.2012

Thats the Code :

Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
	switch(dialogid)
	{
	    case 4:
	    {
	        if(!response)
	        {
	            SendClientMessage(playerid,ROT,"Du hast das Navi ausgeschaltet.");
	            return 1;
	        }
	        switch(listitem)
	        {
	            case 0:
	            {
	                SetPlayerCheckpoint(playerid,1478.8463,-1741.1326,13.5469,5);
	            }
	            case 1:
	            {
	                SetPlayerCheckpoint(playerid,1540.5736,-1675.1135,13.5509,5);
	            }
	            case 2:
	            {
	                SetPlayerCheckpoint(playerid,1361.9408,-1280.8741,13.3828,5);
	            }
	        }
	    }
	}
}
My Error:

Код:
C:\Users\Kerem\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(488) : error 017: undefined symbol "dialogid"
C:\Users\Kerem\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(492) : error 017: undefined symbol "response"
C:\Users\Kerem\Desktop\UltimateFreeStyl\gamemodes\Reallife.pwn(497) : error 017: undefined symbol "listitem"

Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Who can find the mistake


Re: A little Problem :O - cecko1235 - 05.11.2012

use #define DIALOGID 3300


Re: A little Problem :O - cosbraa - 05.11.2012

Found it!
public OnPlayerPickUpPickup(playerid, pickupid)


AW: A little Problem :O - AwokenNeoX - 05.11.2012

Thanks ur the best


Re: A little Problem :O - ThePhenix - 05.11.2012

It must be below OnDialogResponse function.