Hello, Any One Teach Me How To Do That
#10

Error
Quote:

C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(39) : error 029: invalid expression, assumed zero
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(43) : error 017: undefined symbol "GivePlayerWantedLevel"
C:\Documents and Settings\NightDay\Desktop\Day_Cops_And_Robbers\fil terscripts\siren.pwn(46) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

PHP код:
#include <a_samp>
#include <zcmd>
new CP[MAX_PLAYERS];
CMD:robbery(playeridparams[])
{
           
SendClientMessage(playerid0xFF0000"This text is red.");
           
SendClientMessage(playerid0xFF0000FF"Wanted Level: 6");
           return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
        if(
CP[playerid] == 0)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1454.8569,1489.1010,7.10163.0);//Second CP
        
CP[playerid] = 1;
        }
        else if(
CP[playerid] == 1)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1428.7382,1490.0945,7.10163.0);//Third CP
        
CP[playerid] = 2;
        }
        else if(
CP[playerid] == 2)
        {
        
DisablePlayerCheckpoint(playerid);
        
SetPlayerCheckpoint(playerid, -1402.7249,1486.1351,7.10163.0);//Fourth CP
        
CP[playerid] = 3;
        }
        
//Next checkpoints
        
else if(CP[playerid] == )//Last CP
        
{
        
DisablePlayerCheckpoint(playerid);
        
CP[playerid] = -1;
        
GivePlayerWantedLevel(playeridGetPlayerWantedLevel(playerid)+6);
        
GivePlayerMoney(playerid40000+random(80001));
        }
    return 
1;

Reply


Messages In This Thread
Hello, Any One Teach Me How To Do That - by nightday - 26.08.2014, 17:29
Re: Hello, Any One Teach Me How To Do That - by Tommboow - 26.08.2014, 17:31
Re: Hello, Any One Teach Me How To Do That - by nightday - 26.08.2014, 17:57
Re: Hello, Any One Teach Me How To Do That - by Stinged - 26.08.2014, 17:59
Re: Hello, Any One Teach Me How To Do That - by nightday - 26.08.2014, 18:09
Re: Hello, Any One Teach Me How To Do That - by nightday - 26.08.2014, 19:28
Re: Hello, Any One Teach Me How To Do That - by Thogy - 26.08.2014, 20:32
Re: Hello, Any One Teach Me How To Do That - by nightday - 26.08.2014, 21:51
Re: Hello, Any One Teach Me How To Do That - by MikeEd - 26.08.2014, 21:54
Re: Hello, Any One Teach Me How To Do That - by nightday - 27.08.2014, 09:15

Forum Jump:


Users browsing this thread: 2 Guest(s)