Need help with scripting something
#7

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Here
pawn Код:
new cp; //at the top of your script
cp = CreateDynamicCP(1520.9996,-1474.4762,9.5000,5,_,_,_,300); //under OnGameModeInit()

public OnPlayerEnterDynamicCP(playerid,checkpointid)//Create a new callback in your script.
{
    if(checkpointid == cp)
    {
        RepairVehicle(GetPlayerVehicleID(playerid));
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_GREEN, "You are not in a vehicle!");
        SendClientMessage(playerid, COLOR_PURPLE, "You repaired the vehicle");
        GivePlayerMoney(playerid, -100);
        SendClientMessage(playerid, COLOR_YELLOW, "The repair costed you 100 dollars");
        PlayerPlaySound(playerid, 1133, 0, 0, 0);
    }
    return 1;
}
You need streamer plugin(****** it!)
I get the following errors
Код:
C:\Users\Sonny\Documents\SAMP server\gamemodes\Test.pwn(61) : error 017: undefined symbol "CreateDynamicCP"
C:\Users\Sonny\Documents\SAMP server\gamemodes\Test.pwn(385) : warning 235: public function lacks forward declaration (symbol "OnPlayerEnterDynamicCP")
Reply


Messages In This Thread
Need help with scripting something - by Songason - 19.07.2012, 16:19
Re: Need help with scripting something - by [KHK]Khalid - 19.07.2012, 16:29
Re: Need help with scripting something - by Songason - 19.07.2012, 16:34
Re: Need help with scripting something - by Songason - 19.07.2012, 16:46
Re: Need help with scripting something - by newbienoob - 19.07.2012, 17:02
Re: Need help with scripting something - by Songason - 19.07.2012, 17:05
Re: Need help with scripting something - by Songason - 19.07.2012, 17:35
Re: Need help with scripting something - by XStormiest - 19.07.2012, 17:47
Re: Need help with scripting something - by Songason - 19.07.2012, 19:26
Re: Need help with scripting something - by Songason - 19.07.2012, 21:15

Forum Jump:


Users browsing this thread: 1 Guest(s)