error 006
#1

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;
Reply
#2

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!
Reply
#3

Edit: Above^
Reply
#4

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,....}
Reply
#5

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

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.
Reply
#7

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?
Reply
#8

hmm do you have skype?
Reply
#9

yes tonycranh
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)