Help pls! {1} error
#1

Hello, i got that error any one can fix ?
Код:
// level 11
CMD:level11(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 11) {
		new pDialog[1000];
		strcat(pDialog, "{FFFF00}/setlevel {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/settemplevel {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/setallcash {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/kickall {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/killall {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/object ID {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/pickup ID {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/cia {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/nameunban {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/unbanip {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/apromote {FFFFFF}\n", sizeof(pDialog))
                strcat(pDialog, "{FFFF00}/ademote {FFFFFF}\n", sizeof(pDialog)); <error line< 42608  
		strcat(pDialog, "\n", sizeof(pDialog));
		ShowPlayerDialog(playerid, 820, DIALOG_STYLE_MSGBOX, "{0000BB}Developer /level11", pDialog, "Ok","");
		return 1;
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Reply
#2

Код:
CMD:level11(playerid,params[]) {
    if(PlayerInfo[playerid][Level] >= 11) {
		new pDialog[1000];
		strcat(pDialog, "{FFFF00}/setlevel {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/settemplevel {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/setallcash {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/kickall {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/killall {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/object ID {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/pickup ID {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/cia {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/nameunban {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/unbanip {FFFFFF}\n", sizeof(pDialog));
		strcat(pDialog, "{FFFF00}/apromote {FFFFFF}\n", sizeof(pDialog));
                strcat(pDialog, "{FFFF00}/ademote {FFFFFF}\n", sizeof(pDialog)); 
		strcat(pDialog, "\n", sizeof(pDialog));
		ShowPlayerDialog(playerid, 820, DIALOG_STYLE_MSGBOX, "{0000BB}Developer /level11", pDialog, "Ok","");
		return 1;
    } else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Missing ";"
Reply
#3

where i must add it?
Reply
#4

Quote:
Originally Posted by vikoo
Посмотреть сообщение
where i must add it?
Try the code i posted?
Reply
#5

You forgot to put ; in end of 42607 line.
PHP код:
    strcat(pDialog"{FFFF00}/apromote {FFFFFF}\n"sizeof(pDialog)); 
EDIT: WhiteGhost was faster.
Reply
#6

Deleted..
Reply
#7

oh thx WhiteGhost that's works
and thx Farzam
Reply
#8

Quote:
Originally Posted by vikoo
Посмотреть сообщение
oh thx WhiteGhost that's works
Now you post..

Quote:
Originally Posted by Farzam
Посмотреть сообщение
You forgot to put ; in end of 42607 line.
PHP код:
    strcat(pDialog"{FFFF00}/apromote {FFFFFF}\n"sizeof(pDialog)); 
EDIT: WhiteGhost was faster.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)