A little help? - 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: A little help? (
/showthread.php?tid=94770)
A little help? -
then9ne - 31.08.2009
I found a code to make an invincible car, pretty sure it makes any and all models of the selected car/cars to be invincible.
Quote:
C:\Documents and Settings\Pepto\Desktop\samp02X(4)\samp02X\gamemode s\Wasted.pwn(9291) : error 021: symbol already defined: "SetTimer"
|
Everytime I try to compile, I get this. I am currently trying to use this code...
Quote:
Originally Posted by Zezombia
At the top of your script:
In OnGameModeInit:
pawn Код:
SetTimer("CarGod:, 2000, 1);
At the bottom of your script:
pawn Код:
public CarGod() { for(new i = 0; i < 200; i++) { SetVehicleHealth(GetPlayerVehicleID(i), 1000); } }
|
When it says place it at the top, it is literally my very first line. When it says the bottom, it is the very last lines. The "SetTimer" is placed under OnGameModeInit, from what I know, I'm pretty sure it's the very end.
All I know is that the SetTimer seems to be messing me up, any solutions?
Re: A little help? -
Jefff - 01.09.2009
WTH?
Re: A little help? -
brett7 - 01.09.2009
just a simple typo
Re: A little help? -
then9ne - 01.09.2009
I changed the typo...
Still have the same exact error.
Re: A little help? -
brett7 - 01.09.2009
maybe a header problem:
CarGod() <- CarGod(playerid)
SetVehicleHealth(GetPlayerVehicleID(i), 1000); <-uses (i) but its does say in CarGod()
mayybe add under player connect