Pomoc oko dialoga

Započeo Mlinky, Novembar 20, 2010, 13:51:54 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

radim register i login sistem ali ja bi to u dialogu a neznam kako pokuso sam ali error ovako imam:
new plname[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
gPlayerAccount[playerid] = 0;
SafeTime[playerid] = 60;
gPlayerLogged[playerid] = 0;
Unspec[playerid][sLocal] = 255;
Spectate[playerid] = 255;
Spectate[playerid] = 255;
    PlayerInfo[playerid][pCash] = dollah;
    GivePlayerCash(playerid,PlayerInfo[playerid][pCash]);
PlayerInfo[playerid][pAdmin] = 0;
PlayerInfo[playerid][pDonateRank] = 0;
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pIP] = 0;
PlayerInfo[playerid][pKills] = 0;
PlayerInfo[playerid][pDeaths] = 0;
PlayerInfo[playerid][pConnectTime] = 0;
PlayerInfo[playerid][pReg] = 0;
PlayerInfo[playerid][pWarns] = 0;
PlayerInfo[playerid][pWantedLevel] = 0;
PlayerInfo[playerid][pKnife] = 0;
PlayerInfo[playerid][pDeagle] = 0;
PlayerInfo[playerid][pSdpistol] = 0;
PlayerInfo[playerid][pColt] = 0;
PlayerInfo[playerid][pMac10] = 0;
PlayerInfo[playerid][pMP5] = 0;
PlayerInfo[playerid][pShotgun] = 0;
PlayerInfo[playerid][pSPAS12] = 0;
PlayerInfo[playerid][pAK47] = 0;
PlayerInfo[playerid][pM4] = 0;
PlayerInfo[playerid][pRifle] = 0;
PlayerInfo[playerid][pSniperRifle] = 0;
PlayerInfo[playerid][pRocket] = 0;
PlayerInfo[playerid][pFlowers] = 0;
PlayerInfo[playerid][pExtinguisher] = 0;
PlayerInfo[playerid][pGrenade] = 0;
PlayerInfo[playerid][pTear] = 0;
PlayerInfo[playerid][pNitestick] = 0;
SetPlayerColor(playerid, COLOR_GREY);
GetPlayerName(playerid, plname, sizeof(plname));
format(string, sizeof(string), "User/%s.ini", plname);
if(fexist(string))
{
gPlayerAccount[playerid] = 1;
SendClientMessage(playerid, COLOR_GREEN, "SERVER: Tvoj Nick je pronaden,Molimo da se logirate.");
SendClientMessage(playerid, COLOR_RED, "SERVER:Koristite /login [Password]");
return 1;
}
else
{
gPlayerAccount[playerid] = 0;
SendClientMessage(playerid,COLOR_GREEN,"SERVER:Vi niste regestrirani korisnik,molimo vas da se regestrirate.");
SendClientMessage(playerid,COLOR_RED,"SERVER:Koristite /register [password].");
return 1;
}
}


public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
new ip[20];
GetPlayerIp(playerid,ip,sizeof(ip));
new playername3[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername3, sizeof(playername3));
format(string3, sizeof(string3), "User/%s.ini", playername3);
new File: hFile = fopen(string3, io_write);
if (hFile)
{
    strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255);
    new var[32];
format(var, 32, "Key=%s\n", PlayerInfo[playerid][pKey]);fwrite(hFile, var);
PlayerInfo[playerid][pCash] = GetPlayerCash(playerid);
format(var, 32, "AdminLevel=%d\n",PlayerInfo[playerid][pAdmin]);fwrite(hFile, var);
format(var, 32, "Banned=%d\n",PlayerInfo[playerid][pBanned]);fwrite(hFile, var);
format(var, 32, "DonateRank=%d\n",PlayerInfo[playerid][pDonateRank]);fwrite(hFile, var);
format(var, 32, "ConnectedTime=%d\n",PlayerInfo[playerid][pConnectTime]);fwrite(hFile, var);
format(var, 32, "IP=%s\n",PlayerInfo[playerid][pIP]);fwrite(hFile, var);
format(var, 32, "Registered=%d\n",PlayerInfo[playerid][pReg]);fwrite(hFile, var);
format(var, 32, "Money=%d\n",PlayerInfo[playerid][pCash]);fwrite(hFile, var);
format(var, 32, "Kills=%d\n",PlayerInfo[playerid][pKills]);fwrite(hFile, var);
format(var, 32, "Deaths=%d\n",PlayerInfo[playerid][pDeaths]);fwrite(hFile, var);
format(var, 32, "Warnings=%d\n",PlayerInfo[playerid][pWarns]);fwrite(hFile, var);
fclose(hFile);
SendClientMessage(playerid, COLOR_GREEN, "SERVER:Vi ste se regestrirali.");
SendClientMessage(playerid, COLOR_RED, "SERVER:Koristite /login [password].");
}
}
return 1;
}



moze mi to ko staviti u dialog?

1. Pročitaj pravila pod-foruma.
2. Imaš tutoriale koji ti sve objasne.
3. PROBAJ SAM po tutorialu, i onda nam tek postaj sa errorima koje dobiješ.
Povratak na balkan-samp  :)  15.01.2013. 
..   


Respect : [BP]HeLoX, Correlli, [CH:FR]Djea, LordShigi, LuKsA, BloodMaster, [H]265