Error, I need help: GetPlayerName
#1

Can anyone help me?


Код:
                {
                    new Nivel[10];
                    new string[256];
                    new j=0;
                    new Procurados[10][MAX_PLAYER_NAME] = {
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio",
					"Vazio"
					};
				    for(new i=0; i < MAX_PLAYERS; i++)
				    {
				        if(IsPlayerConnected(i))
				        {
				            if(WantedLevel[i] > 1)
							{
							    GetPlayerName(i, Procurados[j], sizeof(Procurados[j])); //27730< LINE 
							    Nivel[j] = WantedLevel[i];
							    j++;
							    if (j == 10) continue;
							}
						}
					}
					format(string, sizeof(string), "%s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i /n %s /r %i", Procurado[0], Nivel[0], Procurado[1], Nivel[1], Procurado[2], Nivel[2], Procurado[3], Nivel[3], Procurado[4], Nivel[4], Procurado[5], Nivel[5], Procurado[6], Nivel[6], Procurado[7], Nivel[7], Procurado[8], Nivel[8], Procurado[9], Nivel[9]);
                    ShowPlayerDialog(playerid, PROCURADOS_DIAG, 0, "Procurados", string, "Fechar", "");
                    return 1;
				}
Код:
D:\SERVER SAMP\New\gamemodes\TheAnotherLife.pwn(27730) : error 001: expected token: "]", but found "-identifier-"
D:\SERVER SAMP\New\gamemodes\TheAnotherLife.pwn(27730) : warning 215: expression has no effect
D:\SERVER SAMP\New\gamemodes\TheAnotherLife.pwn(27730) : error 001: expected token: ";", but found "]"
D:\SERVER SAMP\New\gamemodes\TheAnotherLife.pwn(27730) : error 029: invalid expression, assumed zero
D:\SERVER SAMP\New\gamemodes\TheAnotherLife.pwn(27730) : fatal error 107: too many error messages on one line

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


4 Errors.
Reply
#2

You should see this.
Reply
#3

I could not solve the problem. The problem is in the array.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)