A little help?
#1

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:
pawn Код:
forward CarGod();
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?
Reply
#2

Код:
"CarGod:
WTH?
Код:
"CarGod"
Reply
#3

just a simple typo
Reply
#4

I changed the typo...
Still have the same exact error.
Reply
#5

maybe a header problem:

CarGod() <- CarGod(playerid)

SetVehicleHealth(GetPlayerVehicleID(i), 1000); <-uses (i) but its does say in CarGod()

mayybe add under player connect
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)