28.01.2011, 18:21
Help!
I do not compile!
What is wrong? I crash pawnocc help me!
if(dialogid == 2105 && response)
{
switch(listitem)
{
case 0:
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: Sei Giа loggato!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
case 1:
{
ShowPlayerDialog(playerid,2105,DIALOG_STYLE_INPUT, "Password Errata!","Prego inserire la password:", "Ok","Indietro");
}
}
}
I do not compile!
What is wrong? I crash pawnocc help me!
if(dialogid == 2105 && response)
{
switch(listitem)
{
case 0:
{
if(IsPlayerConnected(playerid))
{
new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "SERVER: Sei Giа loggato!");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, TEAM_AZTECAS_COLOR, "");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
//Encrypt(tmppass);
OnPlayerLogin(playerid,tmppass);
}
case 1:
{
ShowPlayerDialog(playerid,2105,DIALOG_STYLE_INPUT, "Password Errata!","Prego inserire la password:", "Ok","Indietro");
}
}
}