24.09.2010, 11:29
Hello,
I want to add more items to my input dialog menu. When i try to use if(inputtext[0] == '10') and if(strcmp(inputtext, "10", true, 2)) it's not working. if(strcmp(inputtext, "10", true, 2)) bag the script.
Is there any way to do it with if(inputtext[0] == '10')?
I want to add more items to my input dialog menu. When i try to use if(inputtext[0] == '10') and if(strcmp(inputtext, "10", true, 2)) it's not working. if(strcmp(inputtext, "10", true, 2)) bag the script.
Is there any way to do it with if(inputtext[0] == '10')?
pawn Код:
if(dialogid == 67 && response == 1)
{
if(inputtext[0] == '1') {
SetPlayerPos(playerid, 2090.8916,-2545.3416,13.5469);
SendClientMessage(playerid,0xAA3333AA,"You Teleported LS Airport");
}
else if(inputtext[0] == '2') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '3') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '4') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '5') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '6') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '7') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '8') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '9') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '10') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
else if(inputtext[0] == '11') {
SetPlayerPos(playerid, 1481.1478,1229.8453,10.8203);
SendClientMessage(playerid,0xAA3333AA,"You Teleported To LV Airport");
}
return 1;
}
return 0;
}