Jump to content

Recommended Posts

Posted (edited)

Descriere tutorial:Doresc si eu o comanda prin care sa poti seta emailu.. gen [/setemail] prin zcmd..
Sa poata seta emailu intr-o noua linie gen "email"  de la fisieru cu utilizatori-txt pleyerului,,

 

Edited by C.N.G.
Posted (edited)

1)Cum ai definit email?

3) incearca cv de genu si interpretezi tu:

#define Email_Dialog 1234//(sa nu fie vro problema)
CMD:setemail(playerid,params[])
	{
		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;
	}

Edited by WiDuAlK.SaMp
Posted

Spune ce erori iti da

C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55500) : error 017: undefined symbol "setemail"
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55502) : warning 219: local variable "string" shadows a variable at a preceding level
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55506) : error 017: undefined symbol "params"
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55509) : error 017: undefined symbol "pEmail"
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55509 -- 55511) : error 006: must be assigned to an array
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55516) : warning 225: unreachable code
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55500) : warning 203: symbol is never used: "CMD"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.
Posted

Mai im 2 erori

C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(22177) : warning 219: local variable "params" shadows a variable at a preceding level
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(22219) : warning 219: local variable "params" shadows a variable at a preceding level
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55504) : warning 219: local variable "string" shadows a variable at a preceding level
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55508) : error 035: argument type mismatch (argument 1)
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(55511 -- 55513) : error 006: must be assigned to an array
C:UsersJorjDesktoppro-gaminggpro-gamingggamemodesPG.pwn(66692) : warning 203: symbol is never used: "params"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Posted
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;
    }

si o interpretezi tu ma :|

Posted

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;

 

Guest
This topic is now closed to further replies.
×
×
  • 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.