Help please
#1

Hey, i have a prblem with timer and heres my code

pawn Код:
public FBI(playerid)
{
    new Float:X,Float:Y,Float:Z;
    GetPlayerPos(playerid,X,Y,Z);
    CreateVehicle(522, X+8, Y, Z, 90, 0, 0, 5);
    SendClientMessage(playerid,COLOR_GREEN,"You have spawned a NRG  ");
}
But when i compile:

pawn Код:
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(227) : error 025: function heading differs from prototype
C:\Program Files\Rockstar Games\GTA San Andreas\gamemodes\BreakIn.pwn(405) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Line 227 =
pawn Код:
public FBI(playerid)
Reply
#2

Lol i had at top
pawn Код:
forward FBI();
But i added this
pawn Код:
forward FBI(playerid);
and no errors
Reply
#3

Код:
forward FBI(playerid);
Do you have this?
Reply
#4

Ok so i wont make new thread so i have one more problem

my code:

pawn Код:
COMMAND:fbi(playerid,params[])
{
    if(GetPlayerSkin(playerid) == 286)
    {
    SendClientMessage(playerid,COLOR_GREEN,"Your car will spawn in 10 seconds");
    SetTimer("FBI",10000,0);
    }
    else
    {
    SendClientMessage(playerid,COLOR_RED,"Your not  FBI to use this COMMAND");
    }
    return 1;
}
But ingame i type /fbi it sais SERVER:UNKNOWN COMMAND

How to fix this
Reply
#5

Bump i need this really fast cuz im alt tabbed ingame an ppl are waiting me :P
Reply
#6

try this
pawn Код:
CMD:fbi(playerid,params[])
{
    if(GetPlayerSkin(playerid) == 286) return SendClientMessage(playerid,COLOR_RED,"Your not  FBI to use this COMMAND");
   
    SendClientMessage(playerid,COLOR_GREEN,"Your car will spawn in 10 seconds");
    SetTimer("FBI",10000,0);
    return 1;
}
change CMD to your zcmd
Reply
#7

Ok ty dude
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)