Toll system, needed
#10

Quote:
Originally Posted by jeremy8810
Посмотреть сообщение
hmm now im stuck...
Got this errors:

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
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

On this script:
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(35781651.2354736328, -43.64343261718836.1392173767090021.5);         //toll-barrier start position (toll is closed)
    
CreateDynamicObject(38811657.2738037109, -38.7260742187537.2669296264650020.5);                //lv toll object
    
CreateDynamicObject(38811645.2979736328, -48.71124649047937.26692962646500201.24499511719);     //lv toll object
    
CreateDynamicObject(9781644.5096435547, -58.16750717163135.97201538085900272);                 //lv toll object
    
CreateDynamicObject(9791663.5103759766, -44.45117187535.93604278564500129.75);                 //lv toll object
    
CreateDynamicObject(9781656.4311523438, -30.88540267944335.9392280578610074);                 //lv toll object
    
CreateDynamicObject(9791638.6834716797, -43.44638824462935.92470550537100315);                //lv toll object
    
SetTimer("Tolls"1500true);
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
Tolls()
{
    foreach(
Playerplayerid)
    {
        if (
IsPlayerInRangeOfPoint(playerid15.01651.2354736328, -43.64343261718836.139217376709))
        
GetPlayerWantedLevel(playerid) > 3// Checks if wanted level is over 3..
        
{
        
SendClientMessage(playeridred"Your wanted level is 3 or higher, take another way!");
        }
        else
        {
            
MoveDynamicObject(toll11651.2353515625, -43.64257812534.4641151428222.5);
            
GivePlayerMoney(playerid, -30);
            
GameTextForPlayer(playerid"~y~You paid toll, drive carefull!~n~~r~$30"30003);
            
SetTimerEx("Timer_TollsClose",5000,false,"i"0);
        }
    }
}
public 
Timer_TollsClose(tollid)
{
    switch(
tollid)
    {
        case 
0MoveDynamicObject(toll11651.2354736328, -43.64343261718836.1392173767092.5); // LV toll-barrier open position
    
}

I no its old topic but why use what i made then basically change the name :S
https://sampforum.blast.hk/showthread.php?tid=280921
Reply


Messages In This Thread
Toll system, needed - by jeremy8810 - 01.07.2012, 15:40
Re: Toll system, needed - by Dan. - 01.07.2012, 15:43
Re: Toll system, needed - by jeremy8810 - 01.07.2012, 15:45
Re: Toll system, needed - by Dan. - 01.07.2012, 15:51
Re: Toll system, needed - by MadeMan - 01.07.2012, 15:53
Re: Toll system, needed - by LaGrande - 01.07.2012, 15:56
Re: Toll system, needed - by jeremy8810 - 01.07.2012, 15:56
Re: Toll system, needed - by jeremy8810 - 01.07.2012, 16:27
Re: Toll system, needed - by Dan. - 01.07.2012, 16:33
Respuesta: Re: Toll system, needed - by [LHT]Bally - 19.01.2013, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)