A little Problem :O
#1

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
Reply
#2

use #define DIALOGID 3300
Reply
#3

Found it!
public OnPlayerPickUpPickup(playerid, pickupid)
Reply
#4

Thanks ur the best
Reply
#5

It must be below OnDialogResponse function.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)