[HELP]Checking if player has picked 2 or more pickups!
#1

I'm having a problem making a message appear right after a player picks 2 certain pickups.
I did this has you can see:

Код:
     new bag;
     new suitcase;

    bag = CreatePickup(1550, 3, 2144.0920,1640.4911,993.5761);
    suitcase = CreatePickup(1210, 3, 2218.3157,1613.3298,999.9
    

    if(pickupid == suitcase, bag) {
	new string[48];
	new playername[MAX_PLAYER_NAME];
	GetPlayerName(playerid, playername, 24);
	format(string, sizeof(string), " %s has robbed 150000$ from Caligula's!", playername );
	SendClientMessageToAll(COLOR_RED, string);
	SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------");
	SendClientMessage(playerid, COLOR_WHITE,"Both suitcase and bag have been stolen.");
	SendClientMessage(playerid, COLOR_GREEN,"Escape the Casino!");
	SendClientMessage(playerid, COLOR_RED,"------------------------------------------------------------------");
	return 1;
	}
The message appears after i picked up both of the pickups but, not right away it takes a while for it to show the message :/
Am i doing something wrong here or it isn't possible to make a message appear right away once i have picked up the 2 pickups?

Please help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)