NEED HELP!
#5

Код:
Ok now Following Errors:

C:\Dokumente und Einstellungen\Spiderman\Desktop\Vb6\filterscripts\Stars.pwn(7) : warning 217: loose indentation
C:\Dokumente und Einstellungen\Spiderman\Desktop\Vb6\filterscripts\Stars.pwn(7) : error 010: invalid function or declaration
C:\Dokumente und Einstellungen\Spiderman\Desktop\Vb6\filterscripts\Stars.pwn(14) : error 010: invalid function or declaration
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


2 Errors.


whit following:
 
[PAWN Code]#include <a_samp>
new gTeam[MAX_PLAYERS];
#define TEAM_COP 21
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_COP 0x3C26C7AA
public OnPlayerDeath(playerid, killerid, reason) { new oldlevel; new newlevel; oldlevel = GetPlayerWantedLevel(killerid); newlevel = oldlevel + 1; if(gTeam[killerid] != TEAM_COP)
SetPlayerWantedLevel(killerid, newlevel); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_BRIGHTRED,"Your wanted level is increased!"); } else if(GetPlayerWantedLevel(playerid) == 1) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,1000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 1000$!");} } else if(GetPlayerWantedLevel(playerid) == 2) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,2000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 2000$!");} } else if(GetPlayerWantedLevel(killerid) == 3) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,3000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 3000$!");} } else if(GetPlayerWantedLevel(killerid) == 4) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,4000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 4000$!");} } else if(GetPlayerWantedLevel(killerid) == 5) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,5000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 5000$!");} } else if(GetPlayerWantedLevel(killerid) == 6) { if(gTeam[killerid] == TEAM_COP){
GivePlayerMoney(killerid,6000); SetPlayerWantedLevel(playerid, 0); SendClientMessage(killerid, COLOR_COP,"You killed a criminal and earned 6000$!");} }
return 1; }

ANy body help?
Reply


Messages In This Thread
NEED HELP! - by Jatoofer - 28.05.2009, 15:16
Re: NEED HELP! - by Gozerr - 28.05.2009, 15:19
Re: NEED HELP! - by Jatoofer - 28.05.2009, 18:09
Re: NEED HELP! - by Nero_3D - 28.05.2009, 18:10
Re: NEED HELP! - by Jatoofer - 28.05.2009, 18:13
Re: NEED HELP! - by Nero_3D - 28.05.2009, 20:27
Re: NEED HELP! - by Jatoofer - 29.05.2009, 10:10

Forum Jump:


Users browsing this thread: 1 Guest(s)