|° HELP ME WHIT OnDialogRespone °| - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: |° HELP ME WHIT OnDialogRespone °| (
/showthread.php?tid=147379)
|° HELP ME WHIT OnDialogRespone °| -
DarkPower - 11.05.2010
Can somebody help me whit OnDialogRespone in this code down, i get this errors
pawn Код:
if(dialogid == 2000)
{
if(strlen(inputtext))
{
if((strcmp("musko", tmp, true, inputtext(tmp)) == 0) && (inputtext(tmp) == inputtext("musko")))
{
PlayerInfo[playerid][pSex] = 1;
ClearChatbox(playerid, 8);
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, "Ok, so you are a Male.");
SendClientMessage(playerid, COLOR_WHITE, "2. What is your birthdate? (Use dd/mm/yyyy)");
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
ClearChatbox(playerid, 2);
new maleskin;
maleskin = random(sizeof(CivMalePeds));
SetPlayerSkin(playerid, maleskin);
PlayerInfo[playerid][pChar] = maleskin;
RegistrationStep[playerid] = 2;
return 0;
}
else if((strcmp("zensko", tmp, true, inputtext(tmp)) == 0) && (inputtext(tmp) == inputtext("zensko")))
{
PlayerInfo[playerid][pSex] = 2;
ClearChatbox(playerid, 8);
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_GREY, "Ok, so you are a Female.");
SendClientMessage(playerid, COLOR_WHITE, "2. What is your birthdate? (Use dd/mm/yyyy)");
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
ClearChatbox(playerid, 2);
new femaleskin;
femaleskin = random(sizeof(CivFemalePeds));
SetPlayerSkin(playerid, femaleskin);
SetPlayerSkin(playerid, femaleskin);
PlayerInfo[playerid][pChar] = femaleskin;
RegistrationStep[playerid] = 2;
return 0;
}
else
{
ClearChatbox(playerid, 8);
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
SendClientMessage(playerid, COLOR_WHITE, "Are you a Male or Female? (Type in what you are).");
SendClientMessage(playerid, COLOR_GREEN, "-----------------------------------------------------------------------");
ClearChatbox(playerid, 2);
}
}
}
else
{
Kick(playerid);
}
C:\Users\NASTIE\Desktop\LG-RP\gamemodes\gtarp.pwn(12296) : error 017: undefined symbol "tmp"
C:\Users\NASTIE\Desktop\LG-RP\gamemodes\gtarp.pwn(12296) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\LG-RP\gamemodes\gtarp.pwn(12296) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\LG-RP\gamemodes\gtarp.pwn(12296) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Re: |° HELP ME WHIT OnDialogRespone °| -
Faith - 11.05.2010
you didnt define tmp..
new tmp[254];
Re: |° HELP ME WHIT OnDialogRespone °| -
DarkPower - 11.05.2010
tny
Re: |° HELP ME WHIT OnDialogRespone °| -
Faith - 11.05.2010
Anytime