Jump to content

zonga

Membru
  • Content Count

    10
  • Joined

  • Last visited

Community Reputation

0 Neutru

About zonga

  • Rank
    Membru

Profile Information

  • Sex
    Masculin
  • Name in game
    [R]zonga
  • Level of knowledge
    Avansat

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. salut tiam pus codurile

     

  2. zonga

    ajutor va rog e urgent

    ?
  3. zonga

    ajutor va rog e urgent

    public OnPlayerLogin(playerid,password[]) { new playername2[MAX_PLAYER_NAME]; GetPlayerName(playerid, playername2, sizeof(playername2)); GameTextForPlayer(playerid, "~w~LOADING...~n~~y~CHECKING THE PASSWORD", 700, 3); new playerip[16]; GetPlayerIp(playerid,playerip,sizeof(playerip)); if(NumIp(playerip, playerid) >= 50 && !IsBotOnIP(playerip)) { SendClientMessage(playerid, COLOR_LIGHTRED, "There are already 2 players connected with same IP."); Kick(playerid); return 1;
  4. zonga

    ajutor va rog e urgent

    public OnPlayerRegister(playerid, password[]) { if(IsPlayerConnected(playerid)) { new playername3[MAX_PLAYER_NAME]; UpdateProgressBar(playerid); GetPlayerName(playerid, playername3, sizeof(playername3)); new Str[200]; mysql_format(SQL,Str,sizeof(Str),"INSERT INTO `users` (`name`,`password`) VALUES ('%s','%s')",playername3,password); mysql_tquery(SQL,Str,"",""); strmid(PlayerInfo[playerid][pKey], password, 0, strlen(password), 255); PlayerInfo[playerid][pCash] = GetPlayerCash(playerid); GetPlayerHealthEx(playerid,PlayerInfo[playerid][pHealth]); if ((PlayerInfo[playerid][pPos_x]==0.0 && PlayerInfo[playerid][pPos_y]==0.0 && PlayerInfo[playerid][pPos_z]==0.0)) { PlayerInfo[playerid][pPos_x] = 2246.6; PlayerInfo[playerid][pPos_y] = -1161.9; PlayerInfo[playerid][pPos_z] = 1029.7; } if(Spectate[playerid] != -1) { PlayerInfo[playerid][pPos_x] = Unspec[playerid][sPx]; PlayerInfo[playerid][pPos_y] = Unspec[playerid][sPy]; PlayerInfo[playerid][pPos_z] = Unspec[playerid][sPz]; PlayerInfo[playerid][pInt] = Unspec[playerid][sPint]; PlayerInfo[playerid][pLocal] = Unspec[playerid][sLocal]; } new str[128]; mysql_format(SQL,str,128,"UPDATE users SET `pHealth`='%.1f' WHERE `name`='%s'",PlayerInfo[playerid][pHealth],PlayerInfo[playerid][pNormalName]); mysql_tquery(SQL,str,"",""); ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the RED.REDPLAY.RO Server.\n\nPlease enter your password below!","Login","Cancel"); return 1;
  5. zonga

    ajutor va rog e urgent

    e conectata baza numa ca am sters eu datele de acolo cand am dat paste dar nu stiu unde gasesc ce-a ce zici tu cu scriptu
  6. zonga

    ajutor va rog e urgent

    public OnGameModeInit() { mysql_log(LOG_ERROR | LOG_WARNING, LOG_TYPE_HTML); print("---------- SERVER START ----------"); print("[debug] OnGameModeInit()"); SQL = mysql_connect("", "", "", ""); printf("mysql_connect: %d",SQL); print("----------------------------------------------------"); acesta ?
  7. zonga

    ajutor va rog e urgent

    ?
  8. zonga

    ajutor va rog e urgent

    da este ok dar chestia aia ce am spus ca am facut live si au intrat multi playeri si nu mergea sa se conecteze le dadea wrong password de la ce ar putea fii ????
  9. zonga

    ajutor va rog e urgent

    buna ziua am o problema la sv meu de samp azi am facut live si au intrat multi playeri si cand sa bage parola le dadea wrong password pe uni i lasa dar pe alti nu si am bagat din nou baza de date si imi da erroarea asta va rog ma puteti ajuta ? Error SQL query: -- -- Bază de date: `hgamero_php` -- -- -------------------------------------------------------- -- -- Structură tabel pentru tabel `aplications` -- CREATE TABLE `aplications` ( `id` int(11) NOT NULL, `name` varchar(50) NOT NULL, `time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `status` int(69) NOT NULL DEFAULT '0', `factionid` int(69) NOT NULL DEFAULT '0', `playerid` int(69) NOT NULL, `actionby` varchar(50) NOT NULL, `r1` varchar(128) NOT NULL, `r2` varchar(128) NOT NULL, `r3` varchar(128) NOT NULL, `r4` varchar(128) NOT NULL, `r5` varchar(128) NOT NULL, `r6` varchar(128) NOT NULL, `r7` varchar(128) NOT NULL, `r8` varchar(128) NOT NULL, `r9` varchar(128) NOT NULL, `r10` varchar(128) NOT NULL, `r11` varchar(128) NOT NULL, `r12` varchar(128) NOT NULL, `r13` varchar(128) NOT NULL, `r14` varchar(128) NOT NULL, `r15` varchar(128) NOT NULL, `q1` varchar(128) NOT NULL, `q2` varchar(128) NOT NULL, `q3` varchar(128) NOT NULL, `q4`[...] MySQL said: #1050 - Table 'aplications' already exists daca e o sa pun si baza in caz ca ma puteti ajuta Multumesc
  10. buna ziua am bagat textdraw sau ce o fi Date = TextDrawCreate(549.599975, 11.946655, "--"); TextDrawLetterSize(Date, 0.317999, 1.450666); TextDrawAlignment(Date, 1); TextDrawColor(Date, -1); TextDrawSetShadow(Date, 0); TextDrawSetOutline(Date, 1); TextDrawBackgroundColor(Date, 255); TextDrawFont(Date, 3); TextDrawSetProportional(Date, 1); Time = TextDrawCreate(549.599975, 23.893365, "--"); TextDrawLetterSize(Time, 0.634799, 2.406399); TextDrawAlignment(Time, 1); TextDrawColor(Time, -1); TextDrawSetShadow(Time, 0); TextDrawSetOutline(Time, 1); TextDrawBackgroundColor(Time, 255); TextDrawFont(Time, 3); TextDrawSetProportional(Time, 1); return 1; si imi da errorile aste de pot sa i fac ? C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16310) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16311) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16312) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16313) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16314) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16315) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16316) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16317) : error 017: undefined symbol "Date" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(16341) : warning 225: unreachable code C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(19212) : warning 217: loose indentation C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(19211) : warning 204: symbol is assigned a value that is never used: "string" C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(40745) : warning 202: number of arguments does not match definition C:\Users\PROFESSIOAL GAMING\Desktop\backup4193 (2)\samp03\gamemodes\rplay.pwn(40745) : warning 202: number of arguments does not match definition Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 9 Errors.
  11. zonga

    problema /setadmin

    salutare am si eu o problema la comanda /setadmin eu mi-am setat admin 8 di baza de date si cand intru pe server si vreau sa dau admin la cineva imi spune ca nu am acces la accea comanda eu avand admin 8 dece ? CMD:setadmin(playerid, params[]) { if(!EstiFondator(playerid)) return SCM(playerid, COLOR_ERROR, AdminOnly); new userID, admin; if(sscanf(params, "ud", userID, admin)) return SCM(playerid, COLOR_SYNTAX, "Syntax: {FFFFFF}/setadmin <Name/ID> <Admin Level>"); if(admin < 0 || admin > 8) return SCM(playerid, COLOR_ERROR, "Error: Admin level invalid (0 - 8)."); if(!Connected(userID)) return SCM(playerid, COLOR_ERROR, "Error: This player it's not connected."); if(PlayerInfo[userID][pAdmin] == 0 && admin > 0) Iter_Add(ServerAdmins, userID); if(PlayerInfo[userID][pAdmin] > 0 && admin == 0) Iter_Remove(ServerAdmins, userID); new string[180]; PlayerInfo[userID][pAdmin] = admin; SCM(playerid, COLOR_YELLOW, "You have promoted %s to a level %d admin.", GetName(userID), admin); SCM(userID, COLOR_YELLOW, "You've been promoted to level %d admin, by %s %s.", admin, GetAdminName(playerid), GetName(playerid)); format(string, sizeof(string), "AdmCmd: %s %s set %s's admin level to %d.", GetAdminName(playerid), GetName(playerid), GetName(userID), admin); SendAdminMessage(COLOR_LIGHTRED, string, 1); print(string); if(admin == 0) AdminDuty[userID] = 0; UpdateInt(userID, "Admin", PlayerInfo[userID][pAdmin]); return 1;
×

Important Information

This site uses cookies. By continuing browsing, you agree to the use of this information. For more details, see Terms of Use and Privacy Policy.