13.05.2010, 12:45
It doesnt seem to work...
Now i get these errors:
error 029: invalid expression, assumed zero
error 017: undefined symbol "Wait"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Wait"
Now i get these errors:
error 029: invalid expression, assumed zero
error 017: undefined symbol "Wait"
error 029: invalid expression, assumed zero
error 017: undefined symbol "Wait"
Код:
public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/tune", cmdtext, true, 10) == 0) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 405) { AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); // Nitro AddVehicleComponent(GetPlayerVehicleID(playerid), 1087); // Hydraulics AddVehicleComponent(GetPlayerVehicleID(playerid), 1001); // Spoiler AddVehicleComponent(GetPlayerVehicleID(playerid), 1006); // Roof Scoop AddVehicleComponent(GetPlayerVehicleID(playerid), 1007); // Left Side Skirt AddVehicleComponent(GetPlayerVehicleID(playerid), 1017); // Right Side Skirt PlayerPlaySound(playerid,1133,0.0,0.0,0.0); SetTimerEx("Wait", 1000, false, "i", playerid); forward Wait(playerid); public Wait(playerid) { PlayerPlaySound(playerid,1133,0.0,0.0,0.0); } } } }