Dialog samp como aplicar aqui ???
#1

Gente me ajude com este comando so novato neste tipo de programaзгo...Como fasso para aplicar a dialog ae, vlw deis de jб

-------------------------------------------------------------------------------------------------------
if (strcmp(cmd, "/registrar", true) ==0 )
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "SERVER: Vocк jб estб registrado.");
return 1;
}
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "%s.ini", sendername);
new File: hFile = fopen(string, io_read);
if (hFile)
{
SendClientMessage(playerid, COLOR_YELLOW, "Este Nick jб estб registrado, por favor, escolha outro.");
fclose(hFile);
return 1;
}
new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Use: /registrar [senha]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encrypt(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}
Reply


Messages In This Thread
Urgente---Dialog samp como aplicar aqui ??? - by ddz12 - 23.01.2013, 20:21
Re: Dialog samp como aplicar aqui ??? - by Joao Pedro - 23.01.2013, 21:03
Re: Dialog samp como aplicar aqui ??? - by Copom_policia - 24.01.2013, 01:08

Forum Jump:


Users browsing this thread: 1 Guest(s)