SA-MP Forums Archive
Help me with errors... - 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: Help me with errors... (/showthread.php?tid=298162)



Help me with errors... - Gaby29 - 19.11.2011

Can you help me with these errors?
pawn Код:
D:\Games\OnSpeed MOD\gamemodes\gamemodes\OnSpeed.pwn(10431) : error 017: undefined symbol "MecanicCallTime"
D:\Games\OnSpeed MOD\gamemodes\gamemodes\OnSpeed.pwn(10431) : warning 215: expression has no effect
D:\Games\OnSpeed MOD\gamemodes\gamemodes\OnSpeed.pwn(10431) : error 001: expected token: ";", but found "]"
D:\Games\OnSpeed MOD\gamemodes\gamemodes\OnSpeed.pwn(10431) : error 029: invalid expression, assumed zero
D:\Games\OnSpeed MOD\gamemodes\gamemodes\OnSpeed.pwn(10431) : 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.
Line 10431: if(MecanicCallTime > 0)


Re: Help me with errors... - SmiT - 19.11.2011

Self-explanatory? The symbol (variable, constant or function) is not declared - MecanicCallTime


Re: Help me with errors... - Gaby29 - 19.11.2011

pawn Код:
if(MecanicCallTime[i] > 0)
            {
                if(MecanicCallTime[i] == 30) { MecanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
                else
                {
                    format(string, sizeof(string), "%d", 30 - MecanicCallTime[i]);
                    GameTextForPlayer(i, string, 1500, 6);
                    MecanicCallTime[i] += 1;
                }
            }



Re: Help me with errors... - DayaKisteme - 19.11.2011

Quote:
Originally Posted by Gaby29
Посмотреть сообщение
pawn Код:
if(MecanicCallTime[i] > 0)
            {
                if(MecanicCallTime[i] == 30) { MecanicCallTime[i] = 0; DisablePlayerCheckpoint(i); PlayerPlaySound(i, 1056, 0.0, 0.0, 0.0); GameTextForPlayer(i, "~r~RedMarker gone", 2500, 1); }
                else
                {
                    format(string, sizeof(string), "%d", 30 - MecanicCallTime[i]);
                    GameTextForPlayer(i, string, 1500, 6);
                    MecanicCallTime[i] += 1;
                }
            }
Top on your gamemode;

Код:
new MecanicCallTime[MAX_PLAYERS];



Re: Help me with errors... - Gaby29 - 19.11.2011

Thank went but they do it?
pawn Код:
D:\Games\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10444) : error 029: invalid expression, assumed zero
D:\Games\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10444) : error 017: undefined symbol "i"
D:\Games\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\OnSpeed.pwn(10444) : error 029: invalid expression, assumed zero
D:\Games\OnSpeed MOD\gamemodes\gamemodes\ASTE LE FOLOSESC AQ\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.