Help adding Checkpoints !!!
#1

Hey Guys i tryed making a Mission Script i get this:
Код:
#include <a_samp>

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/work", true))
    {
        SetPlayerCheckpoint(playerid, 1644.4673, -2416.9844, 13.5547, 5.0);
        }
        else
        {
        if(IsPlayerInVehicle(playerid, 519) || IsPlayerInVehicle(playerid, 592) || IsPlayerInVehicle(playerid, 577)) return SendClientMessage(playerid,0xFFFFFFFFF,"Yor Need to be In A Vehicle to Do work!");
        return 1;
}
    
public OnPlayerEnterCheckpoint(playerid)
{
    GivePlayerMoney(playerid, 10000);
    DisablePlayerCheckpoint(playerid);
    return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/stopwork", true))
    {
       if(GetPlayerMoney(playerid) >= 1000)
       SendClientMessage(playerid,0xFFFFFFFFF,"You Have Canceled the Work!");
       }
       else
       {
       if(GetPlayerMoney(playerid) >= 999)
       SendClientMessage(playerid,0xFFFFFFFFF,"You Need $1000 to Cancel the Work!");
       return 1;
}
When i Compile it shows error:
[code]C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(15) : error 004: function "OnPlayerEnterCheckpoint" is not implemented
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : warning 225: unreachable code
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(22) : error 029: invalid expression, assumed zero
C:\Documents and Settings\User\Desktop\server\filterscripts\work.pw n(37) : error 030: compound statement not closed at the end of file (started at line 24)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


5 Errors.[code]

Anyone can tell me whats Wrong ? And i need help about this things too:
*How can i make something like that if player get in 1 checkpoint and another should get after 1-2 seconds
*and Last how can i give player money like 10000 to 15000 !!!! It Means it should get between them and every time changed.


AND ITS A FS not GM !!

Thanks in Advance !! +1 Rep for who Helped ME !!!!
Reply


Messages In This Thread
Help adding Checkpoints !!! - by Avi57 - 19.04.2012, 11:46
Re: Help adding Checkpoints !!! - by IstuntmanI - 19.04.2012, 11:48
Re: Help adding Checkpoints !!! - by Cypress - 19.04.2012, 11:50
Re: Help adding Checkpoints !!! - by Avi57 - 19.04.2012, 11:55
Re: Help adding Checkpoints !!! - by IstuntmanI - 19.04.2012, 11:59
Re: Help adding Checkpoints !!! - by Avi57 - 19.04.2012, 12:02
Re: Help adding Checkpoints !!! - by Avi57 - 19.04.2012, 12:13
Re: Help adding Checkpoints !!! - by IstuntmanI - 19.04.2012, 12:41
Re: Help adding Checkpoints !!! - by Avi57 - 20.04.2012, 12:50

Forum Jump:


Users browsing this thread: 1 Guest(s)