Jump to content

Tarzanus

Membru
  • Posts

    62
  • Joined

  • Last visited

Posts posted by Tarzanus

  1. if(strcmp(cmd, "/setemail", true) == 0)

      {

            new email[50], string[200];

            if(!IsPlayerConnected(playerid))

                    return SendClientMessage(playerid,-1,"Nu esti conectat!");

                           if(sscanf(param,"s[49]",email))

                    return SendClientMessage(playerid,-1,"SERVER: /setemail [Noul_Mail]!");

                           PlayerInfo[playerid][pEmail] = email

                   format(string,sizeof(string),"Ti-ai schimbat emailul in: %s !", email);

            ShowPlayerDialog( playerid, Email_Dialog, DIALOG_STYLE_MSGBOX, "Noul Email", string, "Ok", "" );

            return 1;

        }

     

    Ma tem ca ii va da errori de la asta:

     

     

    PlayerInfo[playerid][pEmail] = email

    trebuie sa pui si ; la sfarsit.

    PlayerInfo[playerid][pEmail] = email;

     

  2. Dupa ce am stat pe wiki, si am invatat strcmp, am observat ca n-ai pus acel nr.

    if(!strcmp(cmdtext, "/requestevent", true, 3) || !strcmp(cmdtext, "/reqe", true, 3)) // By AlyN
    {
    if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Trebuie sa te loghezi  mai intai.");
    if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid,COLOR_DS,"{37B9C8}You`re being chased by police, you can`t make an event.");
    if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}There's already an active event.");
    if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}You're already requesting an event, cancel it first.");
    new title[50], location[50], description[100], prize, time[50];
    if(sscanf( "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{B8DBFF}Syntax: /requestevent <Title|Location|Time|Description|Prize>");
    if(strlen(title) < 0 || strlen(title) > 0)  return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in title.");
    if(strlen(location) < 0 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in location.");
    if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in time.");
    if(strlen(description) < 1 || strlen(description) > 100)  return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid amount of characters in description.");
    if(prize < 1 || prize > 5000000)  return SendClientMessage(playerid, 0xFFFFFFFF, "{37B9C8}Invalid prize amount.");
    new dstring[1000],name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    requestingevent[playerid] = 1;
    strmid(requestingtitle[playerid], title, 0, strlen(title));
    strmid(requestinglocation[playerid], location, 0, strlen(location));
    strmid(requestingdescription[playerid], description, 0, strlen(description));
    requestingprize[playerid] = prize;
    strmid(requestingtime[playerid], time, 0, strlen(time));
    format(string, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid);
    SendClientMessage(playerid, 0xFFFFFFFF, dstring);
    format(string, sizeof(dstring), "{FFFF00}Event: Title: %s Prize: $%s Location: %s Time: %s",title,FormatNumber(prize), location, time);
    SendClientMessage(playerid, 0xFFFFFFFF, string);
    format(string, sizeof(dstring), "{FFFF00}Event: Organizer: %s Description: %s",name,description);
    SendClientMessage(playerid, 0xFFFFFFFF, dstring);
    SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait.");
    format(string, sizeof(dstring), "{FFFF00}Event %d has been requested, details are below.", playerid);
    ABroadCast(0xFFFFFFFF,dstring,1);
    format(string, sizeof(dstring), "{FFFF00}Event %d: Title: %s Prize: $%s Location: %s Time: %s",playerid,title,FormatNumber(prize), location, time);
    ABroadCast(0xFFFFFFFF,dstring,1);
    format(string, sizeof(dstring), "{FFFF00}Event %d: Organizer: %s Description: %s",playerid,name,description);
    ABroadCast(0xFFFFFFFF,string,1);
    format(string, sizeof(dstring), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid);
    ABroadCast(0xFFFFFFFF,dstring,1);
    return 1;
    }

     

    Incearca asta.

  3.  

    Asta e cel mai important, ceea ce faci sa fie unic.

     

    O.o Nu toti au cunostiinte asa de avansate "ca tine".

    De fapt, ma refeream sa incerce sa faca ceva dupa ce stie, cum poate.

  4. Pai mam gandit ca majoritatea nu pornesc de la 0 si au cunostinte destule sa faca un gm frumos si asa sa fac si eu

    Majoriatea aia la care te referi, 75%, vor sa copie bugged, adica pun {FFFFFF} si culoarea default de la dialog-uri, si texte, so.

  5. if(strcmp(cmd, "/e", true) == 0 || strcmp(cmd, "/eventchat", true) == 0)
    {
     if(IsPlayerConnected(playerid))
     {
     if(gPlayerLogged[playerid] == 0)
     {
     SendClientMessage(playerid, COLOR_GREY, " You havent logged in yet !");
     return 1;
     }
     if(PlayerInfo[playerid][pLevel] < 4)
     {
      SendClientMessage(playerid, COLOR_LIGHTGREEN, " Ai nevoie de level 4 sa poti folosi aceasta comanda !");
     return 1;
     }
     if(PlayerInfo[playerid][pMuted] == 1)
    {
    SendClientMessage(playerid, TEAM_CYAN_COLOR, " Nu poti vorbi, ai mute !!");
    return 1;
    }
    if(PlayerTied[playerid] > 0)
    {
    SendClientMessage(playerid, COLOR_GREY, "  You can`t use this command because you are tied!");
    return 1;
    }
    if(Event7[playerid] == 1)
    {
    GetPlayerName(playerid, sendername, sizeof(sendername));
    new length = strlen(cmdtext);
    while ((idx < length) && (cmdtext[idx] <= ' '))
    {
    idx++;
    }
    new offset = idx;
    new result[64];
    while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
    {
    result[idx - offset] = cmdtext[idx];
    idx++;
    }
    result[idx - offset] = EOS;
    if(!strlen(result))
    {
    SendClientMessage(playerid, COLOR_GRAD2, "{00A1FF}USAGE{FFFFFF}: (/e)vent [text]");
    return 1;
    }
    if(EventChat[playerid] == 0)
    {
    SendClientMessage(playerid, COLOR_GREY, " You already sent 3 messages.");
    return 1;
    }
    if (!ec)
    {
    format(string, sizeof(string), " Please try again later, %d seconds between Event Informations !",  (eventtimer/60));
    SendClientMessage(playerid, COLOR_GRAD2, string);
    return 1;
    }
    EventChat[playerid] -= 1;
    format(string, sizeof(string), "{6699FF}[Organizator Event] %s : %s", sendername, result);
    SendClientMessageToAll(COLOR_ORANGE,string);
    ec = 1;
    }
    else
    {
    SendClientMessage(playerid, COLOR_GREY, " Nu ai un event activ.");
    return 1;
    }
    }
    return 1;
    }
    
  6. ----------
    Loaded log file: "server_log.txt".
    ----------
     
    SA-MP Dedicated Server
    ----------------------
    v0.3z, ©2005-2014 SA-MP Team
     
    [08:05:14] filterscripts = ""  (string)
    [08:05:14] 
    [08:05:14] Server Plugins
    [08:05:14] --------------
    [08:05:14]  Loading plugin: mysql
    [08:05:14]  >> plugin.mysql: R38 successfully loaded.
    [08:05:14]   Loaded.
    [08:05:14]  Loading plugin: streamer
    [08:05:14] 
     
    *** Streamer Plugin v2.6.1 by Incognito loaded ***
     
    [08:05:14]   Loaded.
    [08:05:14]  Loading plugin: sscanf
    [08:05:14] 
     
    [08:05:14]  ===============================
     
    [08:05:14]       sscanf plugin loaded.     
     
    [08:05:14]    © 2009 Alex "Y_Less" Cole
     
    [08:05:14]    0.3d-R2 500 Players "dnee"
     
    [08:05:14]  ===============================
     
    [08:05:14]   Loaded.
    [08:05:14]  Loading plugin: Whirlpool
    [08:05:14]  
    [08:05:14]  ==================
    [08:05:14]  
    [08:05:14]   Whirlpool loaded
    [08:05:14]  
    [08:05:14]  ==================
    [08:05:14]  
    [08:05:14]   Loaded.
    [08:05:14]  Loading plugin: nativechecker
    [08:05:14]   Loaded.
    [08:05:14]  Loaded 5 plugins.
     
    [08:05:14] 
    [08:05:14] Filterscripts
    [08:05:14] ---------------
    [08:05:14]   Loaded 0 filterscripts.
     
    [08:05:14] [MySQL]: Conectarea cu baza de date 'salam' a fost realizata.
    [08:05:14] 
    ----------------------------------
    [08:05:14]   Generation of Stunt v1
     
    [08:05:14] ----------------------------------
     
    [08:05:14] Number of vehicle models: 0
    [08:05:35] Incoming connection: 127.0.0.1:55179
    [08:05:35] [join] TestAccount2 has joined the server (0:127.0.0.1)
    [08:05:42] [part] TestAccount2 has left the server (0:1)
    [08:06:04] Incoming connection: 127.0.0.1:55180
    [08:06:04] [join] TestAccount2 has joined the server (0:127.0.0.1)
    [08:06:11] [part] TestAccount2 has left the server (0:2)
     
    Cred ca poate fi de la asta, nu stiu  :wacko: :
    forward OnPlayerRegister(playerid);
    public OnPlayerRegister(playerid)
    {
    	szQuery[0] = EOS;
    	PaccInfo[playerid][ID] = cache_insert_id();
    	format(szQuery, 128, "{00FF00}Salut {FF0000}%s{00FF00}, ai fost inregistrat cu succes.n{FFFFFF}Parola: {00FF00}%s", GetName(playerid), PaccInfo[playerid][Password]);
    	ShowPlayerDialog(playerid, L_DIALOGs, DIALOG_STYLE_MSGBOX, "Inregistrare", szQuery, "Ok", "");
    	PaccInfo[playerid][LGIN] = 1;
    	return 1;
    }
    
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.