Please help with error...
#1

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;
             }
         }
Reply
#2

Take '%'.

Does it work?
Reply
#3

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

That's what I mean.
Reply
#5

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.
Reply
#6

26 errors means you have a missing bracket somewhere...
Reply
#7

I think you put it out of the loop.
Reply
#8

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.
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 3 Guest(s)