SA-MP Forums Archive
GodFather - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: GodFather (/showthread.php?tid=234262)



GodFather - Max_Coldheart - 03.03.2011

I need help with godfather.
I havent edited it a bit & I get error. How to fix this?

pawn Код:
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(24793) : error 017: undefined symbol "NameTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
The code is:
pawn Код:
NameTimer();
How can I define it?


Re: GodFather - wheelman_WM - 03.03.2011

to define u should use #define
i dont know much


Re: GodFather - Stigg - 03.03.2011

Код:
new NameTimer();



Re: GodFather - Max_Coldheart - 03.03.2011

Now that i added
pawn Код:
new NameTimer();
I get:
pawn Код:
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(223) : error 001: expected token: ";", but found "("
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(24794) : error 012: invalid function call, not a valid address
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(24794) : error 029: invalid expression, assumed zero
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(24794) : warning 215: expression has no effect
C:\Users\Max\Desktop\GTA San Andreas\samp03csvr_win32\gamemodes\gf.pwn(26239) : warning 203: symbol is never used: "NameTimer"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
How to fix


Re: GodFather - Stigg - 03.03.2011

Can we see lines:

223 & 24794 plz


Re: GodFather - Max_Coldheart - 03.03.2011

223:
pawn Код:
new NameTimer();
24794:
pawn Код:
new string[128];
EDIT: Fixed it with
pawn Код:
new NameTimer = 300;
Should this work ?