[Pomoc]Dialog

Započeo Petar Pan, Avgust 29, 2011, 19:50:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:LGDM
Detaljan opis problema:Mozete li mi ove komande u dialog staviti ja sam pokucavao i nece i ako moze kad udje da to automacki izbaci

if (strcmp(cmd, "/registriraj", true)==0)
{
    if(IsPlayerConnected(playerid))
    {
        if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Mamba Balkan: Vec si ulogiran.");
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, "Taj nick vec postoji, molim izaberi drugi.");
fclose(hFile);
return 1;
}
        new tmppass[64];
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Pisi: /registriraj [password]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encript(tmppass);
OnPlayerRegister(playerid,tmppass);
}
return 1;
}


i


   if (strcmp(cmd, "/login", true) ==0 )
{
if(IsPlayerConnected(playerid))
    {
        new tmppass[64];
if(gPlayerLogged[playerid] == 1)
{
SendClientMessage(playerid, COLOR_WHITE, "Mamba Balkan: Logiran si.");
return 1;
}
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD1, "Pisi: /login [password]");
return 1;
}
strmid(tmppass, tmp, 0, strlen(cmdtext), 255);
Encript(tmppass);
OnPlayerLogin(playerid,tmppass);
}
return 1;
}

Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):