06.01.2015, 19:30
Bruno e n0minal, deu esses erros..
Oque faзo? afs, sou um burro!
Quote:
C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(26052) : error 017: undefined symbol "temp" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(26053) : error 017: undefined symbol "temp" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(2605 : error 017: undefined symbol "targetid" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(2605 : error 017: undefined symbol "temp" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(26059) : error 017: undefined symbol "targetid" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(26067) : error 017: undefined symbol "targetid" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(26072) : error 017: undefined symbol "targetid" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(57567) : error 017: undefined symbol "giveplayeri" C:\Documents and Settings\P.Henrique\Desktop\Nova pasta\gamemodes\BSL.pwn(57635) : error 017: undefined symbol "giveplayeri" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 9 Errors. |
pawn Код:
if (strcmp(cmd, "/checkweapons", true) == 0 || strcmp(cmd, "/checkw", true) == 0) //https://sampforum.blast.hk/showthread.php?pid=3318174#pid3318174&posted=1#post3318174
{
if (IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] < 1)
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк nгo tem nнvel administrativo suficiente.");
return true;
}
if (PlayerInfo[playerid][pAdminStats] != 0)
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк nгo estб no modo admin! (/trabalhar)");
return true;
}
temp = strtok(cmdtext, idx);
if (!strlen(temp)) // erro aqui 26053
{
SendClientMessage(playerid, COLOR_GRAD1, "USE: /checkweapons [ID/Nome]");
return true;
}
targetid = ReturnUser(temp);
if (targetid == INVALID_PLAYER_ID) // erro aqui 26059
{
SendClientMessage(playerid, COLOR_GRAD1, "ID/Nome Invбlido.");
return true;
}
//Aqui declarei uma multi-variбvel para evitar a criaзгo de outra variбvel desnecessбria
new weapons[2][13];
format(string, sizeof(string), "Armas de %s:", GetPlayerNameRP(targetid));
SendClientMessage(playerid, COLOR_ADMIN_INFO, string);
for (new i = 0; i <= 12; i++)
{
GetPlayerWeaponData(targetid, i, weapons[0][i], weapons[1][i]);
if (weapons[0][i] != 0)
{
format(string, sizeof(string), "%d: %d (%d)", i, weapons[0][i], weapons[1][i]);
SendClientMessage(playerid, COLOR_ADMIN_INFO, string);
}
}
}
return true;
}