[Question] Undefined symbol ''cmdtext''
#1

I'm getting the error ''Undefined symbol cmdtext''
It was my first attempt on adding a cmd to OnPlayerPickupPickup. Here is the part of the script the error is coming from:
Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{

if(pickupid == Crackpalice)
        {
        
        if (strcmp("/13532", cmdtext, true, 10) == 0)
	{
		// Do something here
		SetPlayerInterior(playerid, 2);
		SetPlayerPos(playerid, 2567.52,  -1294.59,  1063.25    );
		
 }
        
				
        }

	return 1;
}
Best regards Jur.
Reply
#2

You cant put a command atOnPlayerPickUpPickup, commands needs to be putted at OnPlayerCommandtext.
Reply
#3

um, why not make a command that checks if the player is in the icon?
Reply
#4

euhm, If you could explain me how to do that I could hehe.
Reply
#5

Quote:
Originally Posted by jurtes
Посмотреть сообщение
euhm, If you could explain me how to do that I could hehe.
What do you exactly want then, like if the player enters the pickup that he teleports, or teleport with a command or.... ?
Reply
#6

I want that if he steps on the pickup he has to type in a command to get teleported into the interior of big smoke's crack palice. So if he is on the pickup for example he has to type /Mafiateleport
Reply
#7

You'd be best off using IsPlayerInRangeOfPoint then hehe.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)