[AJUDA]Erro Em menu
#1

galera tipo eu fiz um cmd pra aparece uma informaзхes no menu so q da erro
Quote:

new string[50];
new string2[50];
new string3[50];
format(string3,(sizeof)string3,"Pagamento:%d",Play erInfo[playerid][pPayDay])
format(string2,(sizeof)string2,"Drogas:%d",drugs)
format(string, (sizeof)string, "%s cargo%d)",sendername,PlayerInfo[playerid][pRank])
case 0: ShowPlayerDialog(playerid, 1, 2, "Armas","{33AA33}AK47\n{33AA33}MP5\n{33AA33}M4A1\n {33AA33}Espingarda\n{33AA33}Deagle","Selecionar", "Sair");
case 1: ShowPlayerDialog(playerid, 2, 2, "Membros","string","Selecionar", "Sair");
case 2: ShowPlayerDialog(playerid, 3, 2, "Drogas","string2","Selecionar", "Sair");
case 3: ShowPlayerDialog(playerid, 4, 2, "Pagamento","string3","Selecionar", "Sair");
}
}

so que da esse erro:
Quote:

C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(381 : warning 217: loose indentation
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(383 : warning 217: loose indentation
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(9862) : warning 217: loose indentation
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(10166) : warning 217: loose indentation
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(2202 : warning 217: loose indentation
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24674) : error 002: only a single statement (or expression) can follow each "case"
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24674) : error 032: array index out of bounds (variable "sendername")
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24674) : warning 215: expression has no effect
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24676) : warning 219: local variable "string" shadows a variable at a preceding level
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24679) : error 020: invalid symbol name ""
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24680) : error 020: invalid symbol name ""
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24681) : error 020: invalid symbol name ""
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24682) : error 014: invalid statement; not in switch
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\pwn(24682) : warning 215: expression has no effect
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24682) : error 001: expected token: ";", but found ":"
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\pwn(24682) : error 029: invalid expression, assumed zero
C:\DOCUME~1\Gabriel\MEUSDO~1\_BRASI~1\_BRASI~1\paw no\.pwn(24682) : fatal error 107: too many error messages on one line

Me ajudem por favor,desde ja agradeзo
Reply
#2

pawn Код:
ShowPlayerDialog(playerid, 2, 2, "Membros","string","Selecionar", "Sair");
Isso nгo existe.

Atravйs do format, vocк jб preencheu string com X caracteres, sendo assim, nгo precisa usar aspas.

pawn Код:
ShowPlayerDialog(playerid, 2, 2, "Membros",string,"Selecionar", "Sair");




pawn Код:
new String[50];
new String2[50];
new String3[50];

format(String3,(sizeof)String3,"Pagamento:%d",PlayerInfo[playerid][pPayDay])
format(String2,(sizeof)String2,"Drogas:%d",drugs)
format(String, (sizeof)String, "%s cargo%d)",sendername,PlayerInfo[playerid][pRank])

case 0: ShowPlayerDialog(playerid, 1, 2, "Armas","{33AA33}AK47\n{33AA33}MP5\n{33AA33}M4A1\n {33AA33}Espingarda\n{33AA33}Deagle","Selecionar", "Sair");
case 1: ShowPlayerDialog(playerid, 2, 2, "Membros",String,"Selecionar", "Sair");
case 2: ShowPlayerDialog(playerid, 3, 2, "Drogas",String2,"Selecionar", "Sair");
case 3: ShowPlayerDialog(playerid, 4, 2, "Pagamento",String3,"Selecionar", "Sair");

Ps: Nгo entendi seu cуdigo direito. Й mais fбcil vocк postar o comando inteiro.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)