XORP REGISTER PROBLEM
#1

When there are 2(or more) players on server, when anyone tries to register it comes to Time for RPTest, and then the id 0 gets to complete it, and both get stuck.

Any solutions please?



code:
PlayerInfo[playerid][pAge] = check;
format(string, sizeof(string), "Ok, so you are %d year old.",PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_YELLOW2, string);
SendClientMessage(playerid, COLOR_WHITE, "Time for RP test.");
SetTimer("Rptest", 2000, 0);
return 0;
}
return 0;
}
Reply
#2

What are the contents of the "Rptest" function?
Reply
#3

public Rptest(playerid)
{
SetPlayerCameraPos(playerid, 1543.0262,-1071.5807,181.2031);
SetPlayerCameraLookAt(playerid, 1959.3358,-1189.8363,48.0905);
ShowPlayerDialog(playerid, 12345, DIALOG_STYLE_LIST, "What is OOC ?", "Out of Clothes\nOut of character\nOut of Cars", "Spawn", "Cancel");
}
Reply
#4

Okay the problem is simple, you are not passing any playerid to the function at all, so how is it supposed to know who to send to the RPTest? Well it doesn't, the value of playerid in the RPTest function will always be 0. This is all you need to change:

pawn Code:
SetTimerEx("Rptest", 2000, 0,"i",playerid);
Reply
#5

still not working
Reply
#6

Where did you place the new SetTimerEx function I showed you?
Reply
#7

it is working now... i totally forgoted about the SetTimerEx, iwas using SetTimer...

THANKS A LOT!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)