26.05.2010, 14:07
Tentei fazer o comandos /adquirirnivel mas deu alguns erros, no que eu errei?
E estб dando os Seguintes erros:
pawn Код:
if (strcmp(cmd, "/adquirirnivel", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (gPlayerLogged[playerid] != 0)
{
if(PlayerInfo[playerid][pLevel] >= 0)
{
new infostring[256];
if (PlayerInfo[playerid][pExp] ,expquantidade)
{
format(infostring, 256, " Vocк precisa de %d pontos de respeito, vocк tem [%d] !",expquantidade, PlayerInfo[playerid][pExp]);
SendClientMessage(playerid, COLOR_GRAD1, infostring);
return 1;
}
else
{
format(string, sizeof(string), "~g~LEVEL adquirido~n~~w~agora voce esta no level %d", nxtlevel);
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
PlayerPlayMusic(playerid);
PlayerInfo[playerid][pLevel]++;
PlayerInfo[playerid][pExp] = 0;
PlayerInfo[playerid][gPupgrade] = PlayerInfo[playerid][gPupgrade]+2;
GameTextForPlayer(playerid, string, 5000, 1);
format(infostring, 256, " Vocк ganhou %d pontos de atualizaзгo",PlayerInfo[playerid][gPupgrade]);
SendClientMessage(playerid, COLOR_GRAD2, infostring);
levelexp[playerid] = 4;
if(PlayerInfo[playerid][pLevel] >= 8) { levelexp[playerid] = 5; }
if(PlayerInfo[playerid][pLevel] >= 11) { levelexp[playerid] = 6; }
if(PlayerInfo[playerid][pLevel] >= 14) { levelexp[playerid] = 7; }
if(PlayerInfo[playerid][pLevel] >= 17) { levelexp[playerid] = 8; }
}
}
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo estб Logado");
}
}
return 1;
}
Код:
C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13061) : error 017: undefined symbol "expquantidade" C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13063) : error 017: undefined symbol "expquantidade" C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13069) : error 017: undefined symbol "nxtlevel" C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13078) : error 028: invalid subscript (not an array or too many subscripts): "levelexp" C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13078) : warning 215: expression has no effect C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13078) : error 001: expected token: ";", but found "]" C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13078) : error 029: invalid expression, assumed zero C:\DOCUME~1\SRGIO~1\MEUSDO~1\LUKAS\CITYOF~1\Thug.pwn(13078) : fatal error 107: too many error messages on one line