06.11.2010, 09:04
My login code:
And why I get this error:
Код:
dcmd_login(playerid, params[]) { new file[256]; new name[MAX_PLAYER_NAME]; new string[128]; GetPlayerName(playerid, name, sizeof(name)); format(file, sizeof(file), "\\Users\\%s.ini", name); if(!dini_Exists(file)) return SendClientMessage(playerid, 0xFFFFFFFF, "Tu neesi prisiregistraves, rasyk /register [slaptazodis], kad tai padarytum!"); if(!strlen(params)) return SendClientMessage(playerid, 0xFFFFFFFF, "Naudojimas:/register [slaptazodis]"); if(logged[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "Tu jau esi prisijunges!"); new tmp; tmp = dini_Int(file, "hashPW"); if(udb_hash(params) != tmp) { format(string, sizeof(string), "%s, tu ivedei neteisinga slaptazodi!", name); SendPlayerMessage(playerid, 0xFFFFFFFF, string); //this is error line return 1; } else { logged[playerid] = 1; SendClientMessage(playerid, 0xFFFFFFFF, "Tu sekmingai prisijungei!"); } return 0; }
Код:
C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(56) : error 017: undefined symbol "SendPlayerMessage" C:\Documents and Settings\Justas\Desktop\samp\gamemodes\gyvenimas.pwn(439) : warning 203: symbol is never used: "ret_memcpy" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.