12.12.2012, 16:20
Код:
#include <a_samp> #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Job1"); print("--------------------------------------\n"); return 1; } public OnPlayerStateChange(playerid, newstate, oldstate) { new vehicleid = GetPlayerVehicleID(playerid); if(GetVehicleModel(vehicleid) == 418) //moonbeam { if(GetPlayerScore(playerid) < 50) { RemovePlayerFromVehicle(playerid); SendClientMessage(playerid,0xAA3333AA,"You need 50 score to drive this car."); } SetTimerEx("wincash", 60000, true, "i", playerid); } return 1; } //Now outside any callback. forward wincash(playerid); public wincash(playerid) { GivePlayerMoney(playerid, 20); return 1; }
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.