[Ajuda] Como resolver esse erros? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Como resolver esse erros? (
/showthread.php?tid=399220)
Como resolver esse erros? -
GoldLion - 13.12.2012
Por favor nгo digam que eu sou burro ou coisa do tipo, quem nгo quiser ajudar, nгo ajuda
7580:error 028: invalid subscript (not an array or too many subscripts): "Logged"
7580:warning 215: expression has no effect
7580:error 001: expected token: ";", but found "]"
7580:error 029: invalid expression, assumed zero
7580:fatal error 107: too many error messages on one line
esse foram 4 erros que apareceram quando passei um codigo do FS para o GM.
pawn Код:
public OnPlayerConnect(playerid)
{
PlayerProps[playerid] = 0;
Logged[playerid] = 0;
EarningsForPlayer[playerid] = 0;
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
for(new propid; propid < PropertiesAmount; propid++)
{
if(PropInfo[propid][PropIsBought] == 1)
{
if(strcmp(PropInfo[propid][PropOwner], pName, true)==0)
{
EarningsForPlayer[playerid] += PropInfo[propid][PropEarning];
PlayerProps[playerid]++;
}
}
}
#if ENABLE_LOGIN_SYSTEM == 0
if(PlayerProps[playerid] > 0)
{
new str[128];
format(str, 128, "Vocк tem atualmente %d propriedades. use: /minhasprops para saber as info de suas propriedades.", PlayerProps[playerid]);
SendClientMessage(playerid, 0x99FF66AA, str);
}
#endif
Re: Como resolver esse erros? -
ViniBorn - 13.12.2012
Deleta essa linha
Logged[playerid] = 0;
Re: Como resolver esse erros? -
GoldLion - 13.12.2012
se deletar da outros errors
pawn Код:
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : error 001: expected token: ";", but found ")"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : error 029: invalid expression, assumed zero
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9205) : warning 215: expression has no effect
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : error 001: expected token: ";", but found ")"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : error 029: invalid expression, assumed zero
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9249) : warning 215: expression has no effect
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9418) : error 021: symbol already defined: "cmd"
C:\Users\Rosemeri\Desktop\BVC HOST\gamemodes\NEW.pwn(9419) : error 021: symbol already defined: "idx"