13.10.2015, 14:23
Trying to making a rp test, here result anyone know the problem?, just say none.
PHP код:
case 154:
{
if(strlen(PlayerInfo[playerid][pOOC]) < 5)
{
SetPVarInt(playerid, "AppSetup", 1);
ShowPlayerDialog(playerid,155, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Metagame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 155:
{
if(strlen(PlayerInfo[playerid][pMetagame]) < 5)
{
SetPVarInt(playerid, "AppSetup", 2);
ShowPlayerDialog(playerid,156, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Metagame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 156:
{
if(strlen(PlayerInfo[playerid][pRevenge]) < 5)
{
SetPVarInt(playerid, "AppSetup", 3);
ShowPlayerDialog(playerid,157, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Revenge Killing?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 157:
{
if(strlen(PlayerInfo[playerid][pRoleplay]) < 5)
{
SetPVarInt(playerid, "AppSetup", 4);
ShowPlayerDialog(playerid,158, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Roleplay?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 158:
{
if(strlen(PlayerInfo[playerid][pPowergame]) < 5)
{
SetPVarInt(playerid, "AppSetup", 5);
ShowPlayerDialog(playerid,159, DIALOG_STYLE_INPUT, "Tutorial", "What is the definition of Powergame?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 159:
{
if(strlen(PlayerInfo[playerid][pQuest1]) < 5)
{
SetPVarInt(playerid, "AppSetup", 6);
ShowPlayerDialog(playerid,160, DIALOG_STYLE_INPUT, "Tutorial", "What do you do if you get Deathmatched?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 160:
{
if(strlen(PlayerInfo[playerid][pQuest2]) < 5)
{
SetPVarInt(playerid, "AppSetup", 7);
ShowPlayerDialog(playerid,161, DIALOG_STYLE_INPUT, "Tutorial", "You are being arrested ICly you...", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 161:
{
if(strlen(PlayerInfo[playerid][pQuest3]) < 5)
{
SetPVarInt(playerid, "AppSetup", 8);
ShowPlayerDialog(playerid,162, DIALOG_STYLE_INPUT, "Tutorial", "What do you do if you spot a hacker?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 162:
{
if(strlen(PlayerInfo[playerid][pQuest4]) < 5)
{
SetPVarInt(playerid, "AppSetup", 9);
ShowPlayerDialog(playerid,163, DIALOG_STYLE_INPUT, "Tutorial", "Are you allowed to rob somebody that is under 20 Time-In-LS?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 163:
{
if(strlen(PlayerInfo[playerid][pQuest5]) < 5)
{
SetPVarInt(playerid, "AppSetup", 10);
ShowPlayerDialog(playerid,164, DIALOG_STYLE_INPUT, "Tutorial", "Are you allowed to use /report to talk to an admin?", "Next", "Cancel");
}
else CallRemoteFunction("TutorialAnswers","i",playerid);
}
case 164:
{
new string[128], playersip[128];
GetPlayerIp(playerid,playersip,sizeof(playersip));
DeletePVar(playerid,"AppSetup"), DeletePVar(playerid,"TutQuestAmount");
SendClientMessage(playerid,COLOR_WHITE,"Answers posted.");
format(string, sizeof(string), "RegWarn: %s posted their application answers type /answers %d to view.", PlayerName(playerid), playerid);
SendAdminAndRegMessage(0xFF0000FF,string);
format(string, sizeof(string), "RegWarn: PlayersIP: %s - PlayersDNS: %s.", playersip, PlayerInfo[playerid][pHost]);
SendAdminAndRegMessage(0xFF0000FF,string);