[POMOC]dialog/login/register

Započeo MosT_WanteD, Mart 28, 2011, 16:09:24 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:penls
Detaljan opis problema:radio sam dialog login register po ovom tutu http://balkan-samp.com/forum/index.php?topic=2387.0 i javlja mi erore
C:\Documents and Settings\Ahmed\Desktop\SERVER\gamemodes\penls.pwn(5651) : error 010: invalid function or declaration
C:\Documents and Settings\Ahmed\Desktop\SERVER\gamemodes\penls.pwn(5652) : error 010: invalid function or declaration
C:\Documents and Settings\Ahmed\Desktop\SERVER\gamemodes\penls.pwn(22281) : error 017: undefined symbol "Encrypt"
C:\Documents and Settings\Ahmed\Desktop\SERVER\gamemodes\penls.pwn(22310) : error 017: undefined symbol "Encrypt"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

4 Errors.

Dio skripte:
Ovo je u on dialog response:
{
new sendername[MAX_PLAYER_NAME];
new string[128];
if(response)
{
if(dialogid == 12345 || dialogid == 12347)
{
   if(strlen(inputtext))
   {
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
-------------------------EROR:Encrypt(tmppass);--------------------
OnPlayerLogin(playerid,tmppass);
}
else
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"KRIVA LOZINKA\nMolimo vas da unesete tocnu lozinku:",loginname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Izlaz");
gPlayerLogTries[playerid] += 1;
if(gPlayerLogTries[playerid] == 4) { Ban(playerid); }
}
}
if(dialogid == 12345)
{
   if(strlen(inputtext))
   {
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 nadimak je vec zauzet, uzmite drugi nadimak.");
fclose(hFile);
return 1;
}
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
--------------------------EROR:Encrypt(tmppass);-----------------------------
OnPlayerRegister(playerid,tmppass);
}
else
{
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobro dosli, %s\nTaj nadimak nije registriran.\nRegistriraj se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Registriraj","Izlaz");
}
}
}
else
{
Kick(playerid);
}
return 1;
}

}

A ovo u onplayerrequestclass

{
if (gPlayerAccount[playerid] != 0)
{
new loginstring[128];
new loginname[64];
GetPlayerName(playerid,loginname,sizeof(loginname));
format(loginstring,sizeof(loginstring),"Dobro dosli, %s\nTaj nadimak je registriran.\nLogirajte se:",loginname);
ShowPlayerDialog(playerid,12346,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Izlaz");
SendClientMessage(playerid, COLOR_LIGHTRED, "Ako se ne logirate u roku od 30s bit cete izbaceni sa servera!");
}
else
{
SendClientMessage(playerid, COLOR_YELLOW, "INFO: Registrirajte se i uredite svoje papire.");
new regstring[128];
new regname[64];
GetPlayerName(playerid,regname,sizeof(regname));
format(regstring,sizeof(regstring),"Dobro dosli, %s\nTaj nadimak nije registiran.\nRegistriraj se:",regname);
ShowPlayerDialog(playerid,12345,DIALOG_STYLE_INPUT,"Register",regstring,"Registriraj","Izlaz");
}
SetPlayerCameraPos(playerid, 1890.1014,-1194.7969,25.8091);
SetPlayerCameraLookAt(playerid, 1933.4393,-1196.2479,18.8163);
//PlayerPlaySound(playerid, 1187, 0.0, 0.0, 0.0);
PlayerInfo[playerid][pModel] = Peds[classid][0];
SetPlayerTeamFromClass(playerid,classid);
}
ERORI----------
else SpawnPlayer(playerid);
return false;
}
ERORI-----------


Neke slike/video za lakse dobivanje pomoci(neobavezno):
Poslednja Izmena: Mart 28, 2011, 16:11:03 POSLE PODNE od _MosT_WanteD_
LOL

Ovo na kraj moda:

stock Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
  {
  string[x] += (3^x) * (x % 15);
  if(string[x] > (0xff))
  {
  string[x] -= 64;
  }
  }
return 1;
}




I daj linije 5651 i 5652

Citat: BloodMaster poslato Mart 28, 2011, 16:16:32 POSLE PODNE
Ovo na kraj moda:

stock Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
  {
  string[x] += (3^x) * (x % 15);
  if(string[x] > (0xff))
  {
  string[x] -= 64;
  }
  }
return 1;
}




I daj linije 5651 i 5652
ERORI----------
else SpawnPlayer(playerid);
   return false;
}
ERORI-----------
LOL