15.06.2010, 13:39
How can i define this then?
Originally Posted by Luka P.
In which function/callback do you use it?
|
public TypeTutorial(playerid) { for(new i=0; i<MAX_PLAYERS; i++) { SendClientMessage(i, COLOR_LIGHTGREEN, ""); SendClientMessage(i, COLOR_LIGHTGREEN, ""); SendClientMessage(i, COLOR_LIGHTGREEN, ""); SendClientMessage(i, COLOR_LIGHTGREEN, ""); SendClientMessage(i, COLOR_LIGHTGREEN, ""); SendClientMessage(i, COLOR_LIGHTGREEN, "[==| Where does RP stand for? |==]"); SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 1. RealPlay "); SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 2. RolePlay "); SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 3. RapingPeople "); if(!strcmp("2", cmdtext, true, 1) == 0) { SendClientMessage(i, COLOR_LIGHTGREEN, "Good"); } } return 1; } |
Originally Posted by Dolph
Off-topic(kinda): its "What does RP stand for" not "Where does RP stand for?
|
forward TypeTutorial(playerid);
new bool:RP_Test_Active;
public TypeTutorial(playerid)
{
for(new i=0; i < MAX_PLAYERS; i++)
{
for(new i=0; i < 4; i++) SendClientMessage(i, COLOR_LIGHTGREEN, "");
SendClientMessage(i, COLOR_LIGHTGREEN, "[==| What does RP stand for? |==]");
SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 1. RealPlay ");
SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 2. RolePlay ");
SendClientMessage(i, COLOR_LIGHTGREEN, "[==| 3. RapingPeople ");
}
RP_Test_Active = true;
return 1;
}
public OnPlayerText(playerid, text[])
{
if(!strcmp(text, "2", true, 1) && RP_Test_Active){ SendClientMessage(i, COLOR_LIGHTGREEN, "Good"); RP_Test_Active = false; return 0; }
return 1;
}
Originally Posted by Luka P.
EDIT: Lol I saw ur using playerid parameter in TypeTutorial function and then looping through all players... wierd, but thats your script
|