SA-MP Forums Archive
error 006 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: error 006 (/showthread.php?tid=540689)



error 006 - TiXz0r - 06.10.2014

ERROR:
Код:
(1414) : error 006: must be assigned to an array
Part of script:
Код:
        case DIALOG_EMAIL:
        {
			if(response)
            {
                new email[64], message[64];
                {
                     ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_ORANGE"EMAIL","Unesite vas email","Uredu","");
                }
                {
                     ClearText(playerid);
                     PlayerInfo[playerid][pEmail] = email ;
                     format(message, sizeof(message), ""COL_ORANGE"SERVER: "COL_WHITE"U redu,vas email: %s.", email);
                     SendClientMessage(playerid, 0xFFFFFFFF, message);
                     ShowPlayerDialog(playerid, DIALOG_AGE, DIALOG_STYLE_INPUT,""COL_ORANGE"GODINE","Koliko imate godina?","Dalje","");
                }
			}
        }
1414 line
Код:
PlayerInfo[playerid][pEmail] = email;



Respuesta: error 006 - !R1Ch@rD! - 06.10.2014

hello good morning you and posting the same here!

https://sampforum.blast.hk/showthread.php?tid=540675

PD:

pawn Код:
if(dialogid ==  DIALOG_EMAIL)//1503 LINE
        {
            if(response)
            {
                new email[64], message[64];
                {
                     ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_ORANGE"EMAIL","Unesite vas email","Uredu","");
                }
                else
                {
                     ClearText(playerid);
                     PlayerInfo[playerid][pEmail] = email;
                     format(message, sizeof(message), ""COL_ORANGE"SERVER: "COL_WHITE"U redu,vas email: %s.", email);
                     SendClientMessage(playerid, 0xFFFFFFFF, message);
                }
            }
        }
While errors you post and put what the user told you!


Re: error 006 - Rudy_ - 06.10.2014

Edit: Above^


Re: error 006 - Quickie - 06.10.2014

email is a string...must be assigned to array Ex: Ex[]="hello"....NOTE: string is a special kind of array
pawn Код:
new pEmail[/*sizeof(email)*/];    //pEmail must be an array to store an string on it
PlayerInfo[playerid][pEmail[/*sizeof(email)*/]={1,2,3,.....}//email={1,2,3,....}



Re: error 006 - XStormiest - 06.10.2014

Why use of else, if you dont have any "if" or any expresions at alll.......


Re: Respuesta: error 006 - TiXz0r - 06.10.2014

Quote:
Originally Posted by !R1Ch@rD!
Посмотреть сообщение
hello good morning you and posting the same here!

https://sampforum.blast.hk/showthread.php?tid=540675

PD:

pawn Код:
if(dialogid ==  DIALOG_EMAIL)//1503 LINE
        {
            if(response)
            {
                new email[64], message[64];
                {
                     ShowPlayerDialog(playerid, DIALOG_EMAIL, DIALOG_STYLE_INPUT,""COL_ORANGE"EMAIL","Unesite vas email","Uredu","");
                }
                else
                {
                     ClearText(playerid);
                     PlayerInfo[playerid][pEmail] = email;
                     format(message, sizeof(message), ""COL_ORANGE"SERVER: "COL_WHITE"U redu,vas email: %s.", email);
                     SendClientMessage(playerid, 0xFFFFFFFF, message);
                }
            }
        }
While errors you post and put what the user told you!
Код:
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1423) : error 002: only a single statement (or expression) can follow each "case"
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1423 -- 1424) : error 029: invalid expression, assumed zero
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1424) : warning 217: loose indentation
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1431) : error 029: invalid expression, assumed zero
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1434) : error 006: must be assigned to an array
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1441) : error 014: invalid statement; not in switch
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1441) : warning 215: expression has no effect
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1441) : error 001: expected token: ";", but found ":"
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1441) : error 029: invalid expression, assumed zero
C:\Users\Antonio\Desktop\SA_MP\SERVER\gamemodes\gmbeta.pwn(1441) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


8 Errors.



Re: error 006 - TiXz0r - 06.10.2014

Quote:
Originally Posted by Quickie
Посмотреть сообщение
email is a string...must be assigned to array Ex: Ex[]="hello"....NOTE: string is a special kind of array
pawn Код:
new pEmail[/*sizeof(email)*/];    //pEmail must be an array to store an string on it
PlayerInfo[playerid][pEmail[/*sizeof(email)*/]={1,2,3,.....}//email={1,2,3,....}
how to use to my script?


Re: error 006 - Eth - 06.10.2014

hmm do you have skype?


Re: error 006 - TiXz0r - 06.10.2014

yes tonycranh