09.04.2013, 10:07
(
Последний раз редактировалось Giroud12; 09.04.2013 в 10:14.
Причина: Wrong Spell
)
How To Fix This? Really Need Help
pawn Код:
#include <a_samp>
#define Soldier 0
#define Private First Class 1
#define Specialist 2
#define Corporal 3
#define Sargeant 4
#define Staff Sergeant 5
#define Sergeant Major 6
#define Command Sergeant Major 7
#define Lieutenant 8
#define Captain 9
#define Colonel 10
#define Brigadier General 11
#define Major Generals 12
#define General 13
#define Commander 14
new pRank[MAX_PLAYERS];
pRank[playerid] = RANK_Soldier;
forward CheckPlayerRank(playerid);
public CheckPlayerRank(playerid)
{
new iScore = GetPlayerScore(playerid);
switch(iScore)
{
case 0..100:
{
pRank[playerid] = RANK_Soldier;
{
case 0..100:
{
pRank[playerid] = RANK_Specialist;
{
case 0..100:
{
pRank[playerid] = RANK_Corporal;
{
case 0..100:
{
pRank[playerid] = RANK_Sergeant;
{
case 0..100:
{
pRank[playerid] = RANK_Staff Sergeant;
{
case 0..100:
{
pRank[playerid] = RANK_Sergeant Major ;
{
case 0..100:
{
pRank[playerid] = RANK_Command Sergeant Major ;
{
case 0..100:
{
pRank[playerid] = RANK_Lieutenant;
{
case 0..100:
{
pRank[playerid] = RANK_Captain;
{
case 0..100:
{
pRank[playerid] = RANK_Colonel;
{
case 0..100:
{
pRank[playerid] = RANK_Major General;
{
case 0..100:
{
pRank[playerid] = RANK_General;
{
case 0..100:
{
pRank[playerid] = RANK_Commander;
return 1;
}
Quote:
C:\Users\Murid\Documents\New Script\Ranks.pwn(22) : error 010: invalid function or declaration C:\Users\Murid\Documents\New Script\Ranks.pwn(32) : error 017: undefined symbol "RANK_Soldier" C:\Users\Murid\Documents\New Script\Ranks.pwn(34) : error 014: invalid statement; not in switch C:\Users\Murid\Documents\New Script\Ranks.pwn(34) : warning 215: expression has no effect C:\Users\Murid\Documents\New Script\Ranks.pwn(34) : error 001: expected token: ";", but found ".." C:\Users\Murid\Documents\New Script\Ranks.pwn(34) : error 029: invalid expression, assumed zero C:\Users\Murid\Documents\New Script\Ranks.pwn(34) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors. |