forward
#1

pawn Код:
forward firetimer21();
new firetimertwo;
Gives me this error:

Quote:

C:\Users\Luca\Desktop\APRP GM\Server209 - Copia\gamemodes\base.pwn(23) : error 010: invalid function or declaration

IT always worked!
Reply
#2

You forwarded a function and initialized it as a variable.
Reply
#3

It cant Thats my "GM beginning"

pawn Код:
z//Credits to ****** for YSI & Y_INI, Dracoblue and Kush - For y_ini tutorial.

//--------------------------------------------------------------------------------
// Comments:
// *This gamemode was made by Luca_Lewis.
// *Please note that this is V2.0.1 and is still to be worked on!
// -------------------------------------------------------------
// Informations:
// Gamemode: Carson City RP
// Version: V2.0.1
//--------------------------------------------------------------------------------

forward firetimer();
new firetimer2;

forward firetimer21();
new firetimertwo;

forward firetimer31();
new firetimertree;

forward firetimer41();
new firetimerfor;
Please help, +REP!
Reply
#4

When you forward a Interval it is meant to be used as (PUBLIC)

Код:
forward firetimer();
new firetimer2;

forward firetimer21();
new firetimertwo;

forward firetimer31();
new firetimertree;

forward firetimer41();
new firetimerfor;
Example
Код:
SetTimer("firetimer21" 40000, false); // Timer Interval is saved as "firetimer21"
Код:
forward firetimer21()
public firetimer()
{
 // Add the stuff like SendClientMessageToAll, or SetExplosion ETC. 
return 1; 
}

EXAMPLE

Код:
forward firetimer21()
public firetimer()
{
    SendClientMessageToAll(COLOR_RED, "(INFO) a fire has erupted at Main st Hotel (Please Stay back);
    SetExplosion( */*****);
   return 1; 
}
THIS IS NOT WHAT YOU WANT BUT IT CAN HELP
Reply
#5

there's a z before the comment at the top...not sure if that was an accident when pasting or it's really there
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)