06.12.2009, 00:21
hi, i am trying to make a password query. but i doesn't work why and why "int" is an undefined symbol?
can someone fix that or just a tip, please?
How can I compare two datatypes in samp 0.3?
can someone fix that or just a tip, please?
pawn Код:
if(dialogid == 1)
{
int password = "test";
int input = StrToInt(inputtext);
if(response == 1)
{
if(input == password) SendClientMessage(playerid, 0xFFFFFFFF, "Get a Cookie!");
else SendClientMessage(playerid, 0xFFFFFFFF, "No Cookie");
}
else SendClientMessage(playerid, 0xFFFFFFFF, "Exit");
return 1;
}