[Error al compilar GM]
#1

Buenas. Este es mi primer post, mas entro seguido a este foro, y me ha sido de mucha utlilidad en lo relacionado al SA:MP.
En fin. Tengo 4 errores al compilar un GM, ojalб puedan ayudarme a solucionarlos.

Код:
C:\Users\Equipo\Desktop\Samp1\gamemodes\GameMode.pwn(173) : error 003: declaration of a local variable must appear in a compound block
C:\Users\Equipo\Desktop\Samp1\gamemodes\GameMode.pwn(173) : error 017: undefined symbol "cmd"
C:\Users\Equipo\Desktop\Samp1\gamemodes\GameMode.pwn(173) : warning 215: expression has no effect
C:\Users\Equipo\Desktop\Samp1\gamemodes\GameMode.pwn(173) : error 001: expected token: ";", but found "]"
C:\Users\Equipo\Desktop\Samp1\gamemodes\GameMode.pwn(173) : fatal error 107: too many error messages on one line

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


4 Errors.
Aquн le dejo la lнnea de los errores:

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
new pName[MAX_PLAYER_NAME],string[256];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
for(new i=0; i<=GetMaxPlayers(); i++)
new cmd[256];                                     <----- linea 173
new giveplayerid, idx;
cmd = strtok(cmdtext, idx);

{
new playermoney;
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new cmd[256];
new giveplayerid, moneys, idx;
cmd = strtok(cmdtext, idx);
Gracias desde ya.

Edito: Agreguй la parte del cуdigo como pidieron.
Reply


Messages In This Thread
[Error al compilar GM] - by Lennin - 17.09.2011, 05:52
Respuesta: [Error al compilar GM] - by [J]ulian - 17.09.2011, 06:24
Respuesta: [Error al compilar GM] - by Voychuk - 17.09.2011, 08:09
Re: [Error al compilar GM] - by Lennin - 17.09.2011, 11:07
Re: [Error al compilar GM] - by Xyrex - 17.09.2011, 12:15

Forum Jump:


Users browsing this thread: 1 Guest(s)