PDA

View Full Version : error 029: invalid expression, assumed zero


N0FeaR
22/03/2013, 09:42 PM
Can you guys see whats problem here?

C:\Users\N0FeaR\Desktop\Röva Roleplay 0.3x\gamemodes\snuskrp.pwn(12045) : error 029: invalid expression, assumed zero


}
if(dialogid == 501)
{
if(response)
{
new age = strval(inputtext);
{
if(age < 25 || age > 80)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Age must be beteen 25 and 80.");
ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Character's age","Choose your character's age (25-80)", "Choose", "Cancel");
}
else
{
new string[128];
PlayerInfo[playerid][pAge] = strval(inputtext);
format(string, sizeof(string), "SERVER: {FFFFFF}You've set your character's age to %d", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
line 12045 else
{
if(age < 25 || age > 80)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Age must be beteen 25 and 80.");
ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Character's age","Choose your character's age (25-80)", "Choose", "Cancel");
}
else
{
new string[128];
PlayerInfo[playerid][pAge] = strval(inputtext);
format(string, sizeof(string), "SERVER: {FFFFFF}You've set your character's age to %d", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
ShowPlayerDialog(playerid, 502, DIALOG_STYLE_LIST, "What is your Origin?", "America\nEurope\nAsia\nAfrica", "Choose", "Cancel");
}
}
}
}

HurtLocker
22/03/2013, 09:50 PM
}
if(dialogid == 501)
{
if(response)
{
new age = strval(inputtext);
if(age < 25 || age > 80)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Age must be beteen 25 and 80.");
ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Character's age","Choose your character's age (25-80)", "Choose", "Cancel");
}
else
{
new string[128];
PlayerInfo[playerid][pAge] = strval(inputtext);
format(string, sizeof(string), "SERVER: {FFFFFF}You've set your character's age to %d", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
line 12045 else
{
if(age < 25 || age > 80)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "SERVER: {FFFFFF}Age must be beteen 25 and 80.");
ShowPlayerDialog(playerid, 501, DIALOG_STYLE_INPUT, "Character's age","Choose your character's age (25-80)", "Choose", "Cancel");
}
else
{
new string[128];
PlayerInfo[playerid][pAge] = strval(inputtext);
format(string, sizeof(string), "SERVER: {FFFFFF}You've set your character's age to %d", PlayerInfo[playerid][pAge]);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
ShowPlayerDialog(playerid, 502, DIALOG_STYLE_LIST, "What is your Origin?", "America\nEurope\nAsia\nAfrica", "Choose", "Cancel");
}
}
}

N0FeaR
22/03/2013, 10:25 PM
Thanks mate..