hmm now im stuck...
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\tolls-jer.pwn(41) : warning 215: expression has no effect
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\tolls-jer.pwn(41) : error 001: expected token: ";", but found ")"
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\tolls-jer.pwn(41) : error 029: invalid expression, assumed zero
C:\Users\Jeremy\Desktop\World European Trucking Server\filterscripts\tolls-jer.pwn(45) : error 029: invalid expression, assumed zero
3 Errors.
PHP код:
#include <a_samp>
#include <streamer>
#include <foreach>
#define red 0xFF0000AA
new toll1;
forward Tolls();
forward Timer_TollsClose(tollid);
public OnFilterScriptInit()
{
print("\n--------------------------------------");
print("ToLLz By jeremy8810");
print("--------------------------------------\n");
toll1 = CreateDynamicObject(3578, 1651.2354736328, -43.643432617188, 36.139217376709, 0, 0, 21.5); //toll-barrier start position (toll is closed)
CreateDynamicObject(3881, 1657.2738037109, -38.72607421875, 37.266929626465, 0, 0, 20.5); //lv toll object
CreateDynamicObject(3881, 1645.2979736328, -48.711246490479, 37.266929626465, 0, 0, 201.24499511719); //lv toll object
CreateDynamicObject(978, 1644.5096435547, -58.167507171631, 35.972015380859, 0, 0, 272); //lv toll object
CreateDynamicObject(979, 1663.5103759766, -44.451171875, 35.936042785645, 0, 0, 129.75); //lv toll object
CreateDynamicObject(978, 1656.4311523438, -30.885402679443, 35.939228057861, 0, 0, 74); //lv toll object
CreateDynamicObject(979, 1638.6834716797, -43.446388244629, 35.924705505371, 0, 0, 315); //lv toll object
SetTimer("Tolls", 1500, true);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public Tolls()
{
foreach(Player, playerid)
{
if (IsPlayerInRangeOfPoint(playerid, 15.0, 1651.2354736328, -43.643432617188, 36.139217376709))
GetPlayerWantedLevel(playerid) > 3) // Checks if wanted level is over 3..
{
SendClientMessage(playerid, red, "Your wanted level is 3 or higher, take another way!");
}
else
{
MoveDynamicObject(toll1, 1651.2353515625, -43.642578125, 34.464115142822, 2.5);
GivePlayerMoney(playerid, -30);
GameTextForPlayer(playerid, "~y~You paid toll, drive carefull!~n~~r~$30", 3000, 3);
SetTimerEx("Timer_TollsClose",5000,false,"i", 0);
}
}
}
public Timer_TollsClose(tollid)
{
switch(tollid)
{
case 0: MoveDynamicObject(toll1, 1651.2354736328, -43.643432617188, 36.139217376709, 2.5); // LV toll-barrier open position
}
}