30.09.2011, 04:01
Hey i was asking how can i make like....when player enter vehicle he get message...and then after 10 seconds he get another message any idea?
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, -1,"Turn on your seatbelt to not to get arrested");
SendClientMessage(playerid, -1,"Message 2");
return 1;
}
public OnGameModeInit()
{ SetTimer("message",20000,false); } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or pay!"); return 1; } forward message(); public message() { if IsPlayerInAnyVehicle(playerid) *then SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!"); return 1; } C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(34) : error 017: undefined symbol "playerid" C:\Documents and Settings\scry\Desktop\Truck srv\filterscripts\seatbelt.pwn(35) : error 017: undefined symbol "playerid" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors. wtf? |
public OnGameModeInit()
{
SetTimer("message",20000,false);
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
SendClientMessage(playerid, 0x00FF00FF,"Click /seatbelt or pay!");
return 1;
}
forward message(playerid);
public message(playerid)
{
if(IsPlayerInAnyVehicle(playerid) == 1)
{
SendClientMessage(playerid,0xFF0000FF,"You didnt used seatbelt!");
}
return 1;
}