SA-MP Forums Archive
Please help with error... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Please help with error... (/showthread.php?tid=298328)



Please help with error... - Gaby29 - 20.11.2011

I have a problem.... Can you help me?
pawn Код:
D:\Games\OnSpeed MOD\gamemodes\OnSpeed.pwn(10444) : error 029: invalid expression, assumed zero
D:\Games\OnSpeed MOD\gamemodes\OnSpeed.pwn(10444) : error 017: undefined symbol "i"
D:\Games\OnSpeed MOD\gamemodes\OnSpeed.pwn(10444) : error 029: invalid expression, assumed zero
D:\Games\OnSpeed MOD\gamemodes\OnSpeed.pwn(10444) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


4 Errors
At line 10444 write this:if(Robbed[%i] == 1)
Forget all command:
pawn Код:
if(Robbed[%i] == 1)
         {
             if(RobbedTime[i] <= 0)
             {
                 RobbedTime[i] = 0;
               Robbed[i] = 0;
             }
             else
             {
                 RobbedTime[i] -= 1;
             }
         }



Re: Please help with error... - Eo - 20.11.2011

Take '%'.

Does it work?


Re: Please help with error... - Kostas' - 20.11.2011

As Eo said remove the "%"
pawn Код:
if(Robbed[i] == 1)
{
    if(RobbedTime[i] <= 0) {
        RobbedTime[i] = 0;
        Robbed[i] = 0;
    }
    else {
        RobbedTime[i] -= 1;
    }
}



Re: Please help with error... - Eo - 20.11.2011

That's what I mean.


Re: Please help with error... - Gaby29 - 20.11.2011

I replaced and now shows me errors:
pawn Код:
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10444) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10446) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10447) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10448) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10451) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10454) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10456) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10458) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10459) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10460) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10461) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10465) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10468) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10470) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10472) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10473) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10474) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10475) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10479) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10482) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10484) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10485) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10486) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10488) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10490) : error 017: undefined symbol "i"
D:\Games\GABY\SAMPP\utile\1.11.2011\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10491) : error 017: undefined symbol "i"

Compilation aborted.Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.



Re: Please help with error... - Joshb93 - 20.11.2011

26 errors means you have a missing bracket somewhere...


Re: Please help with error... - Eo - 20.11.2011

I think you put it out of the loop.


Re: Please help with error... - Sinc - 20.11.2011

Quote:
Originally Posted by Joshb93
Посмотреть сообщение
26 errors means you have a missing bracket somewhere...
No, not necessarily.

Код:
error 017: undefined symbol "i"
Initilize 'i', whether within the looping instruction, or within the compound statement. See here for more information of types of looping structures.


Re: Please help with error... - Gaby29 - 20.11.2011

Line 10440 is: MecanicCallTime[i] += 1;
Line 10495 is }


Re: Please help with error... - Joshb93 - 20.11.2011

Quote:
Originally Posted by Sync'
Посмотреть сообщение
No, not necessarily.
Yes.. 99.9% of the time, thats what it means.