16.08.2012, 18:29
Hey,
This is for my Register system the Sex from the player,
But it gives this error:
Error line: if(strlen(inputtext) != "Male" || strlen(inputtext) != "Female" || strlen(inputtext) != "Boy" || strlen(inputtext) != "Girl")
This is for my Register system the Sex from the player,
pawn Код:
case 7000:
{
if(strlen(inputtext) != "Male" || strlen(inputtext) != "Female" || strlen(inputtext) != "Boy" || strlen(inputtext) != "Girl")
{
new string[128];
Player[playerid][Sex] = strval(inputtext);
format(string, sizeof(string), "So you are a %s.", strval(inputtext));
SCM(playerid, WHITE, string);
ShowPlayerDialog(playerid, 7001, DIALOG_STYLE_INPUT, "Registration -> Age", "{FFFFFF}Enter your Characters Age", "Enter", "");
}
else
{
SendClientMessage(playerid, WHITE, "Invalid Gender, Use: Male, Female, Boy, Girl");
ShowPlayerDialog(playerid, 7000, DIALOG_STYLE_INPUT, "Registration -> Sex", "{FFFFFF}Enter your Characters Sex", "Enter", "");
}
}
Код:
C:\Users\Stefan Dorst\Desktop\GTA SA\Abandoned Island RP\gamemodes\AIRP.pwn(2267) : error 001: expected token: "-string end-", but found "-identifier-" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.