PHP Code:
new vip_advertisetime;
public plugin_init()
{
vip_advertisetime = register_cvar("amx_advertisetime", "10.0");
RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);
}
public fwHamPlayerSpawnPost(id)
{
static Float:AdvertiseTime;
AdvertiseTime = get_pcvar_float(vip_advertisetime);
advertise_vip(id)
set_task(get_pcvar_float(AdvertiseTime), "advertise_vip", id) // <--- This is the line that gets the error
}
public client_disconnect(id)
{
remove_task(id)
}
public advertise(id)
{
client_print(id, print_chat, "Hi")
}
This gives me a warning:
Quote:
|
C:\Users\Stu\Desktop\other\Stu's plugins\VIP.sma(71) : warning 213: tag mismatch
|
Ive never used floats before, and aparently i cant anyway xD
__________________