[AJUDA]Erro rank[playerid]
#1

Olб Novamente

O meu gm guerra de equipes й take over ou seja o player precisa de um determinado rank para ter uma determinada patente,assim.Para um player ser Piloto ele precisa ter rank 3 oq quero saber й,como mudar o rank 3 para 5 assim o player so conseguira ser Piloto quando tiver rank 5,aqui um cуdigo do meu gm


Код:
 if(listitem == 1)
{
if( rank[playerid] >= 1 )
{
SendClientMessage(playerid, COLOR_GREY, "Vocк escolheu  demoliзгo Como sua classe.");
 SendClientMessage(playerid, COLOR_GREY, "Digite: /mudar Para Mudar de Classe.");
gPlayerClass[playerid] = DEMOLITION;
 PickedClass[playerid] = 1;
SetPlayerVirtualWorld(playerid, 0);
TogglePlayerControllable(playerid, 1);
if(gTeam[playerid] == TEAM_USA)
{
GivePlayerWeapon(playerid, 16, 50);
GivePlayerWeapon(playerid, 36, 5);
GivePlayerWeapon(playerid, 24, 200);
 SetPlayerSkin(playerid, 73);
}
else
if(gTeam[playerid] == TEAM_GERMANY)
{
GivePlayerWeapon(playerid, 16, 50);
GivePlayerWeapon(playerid, 36, 5);
GivePlayerWeapon(playerid, 24, 200);
SetPlayerSkin(playerid, 27);
}
else if( gTeam[playerid] == TEAM_RUSSIA || gTeam[playerid] == TEAM_JAPAN )
{
GivePlayerWeapon(playerid, 34, 200);
GivePlayerWeapon(playerid, 1, 1);
GivePlayerWeapon(playerid, 24, 200);
}
}
else
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_LIST, "Selecione Sua Classe", "Assalto\nDemoliзao\nSniper\nPiloto\nMedico\nEngenheiro\nPyroman\nScout\nGeneral/Commander", "Selecione", "Cancelar");
TogglePlayerControllable(playerid, 0);
SendClientMessage(playerid, COLOR_RED, "Vocк precisa ter rank 1 para ser Demoliзao!");
}
}
eu modifiquei essas linhas

if(listitem == 1)

if( rank[playerid] >= 1)
Alterei o numero 1 e botei 12 e deu esses erros

Код:
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2525) : warning 217: loose indentation
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2530) : warning 217: loose indentation
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2634) : warning 217: loose indentation
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488) : warning 204: symbol is assigned a value that is never used: "string"
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488 -- 2851) : warning 209: function "OnDialogResponse" should return a value
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488 -- 2853) : error 010: invalid function or declaration
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488 -- 2856) : error 010: invalid function or declaration
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488 -- 2859) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Tche\Desktop\Samp Server\gamemodes\guerras.pwn(2488 -- 2859) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
Isso й erro no rank[playerid] ou em alguma outra funзгo?..Vlw
Reply


Messages In This Thread
[AJUDA]Erro rank[playerid] - by [US]NAVY[SAPD] - 05.08.2011, 12:36
Respuesta: [AJUDA]Erro rank[playerid] - by Sergio_MOW - 05.08.2011, 14:58
Re: [AJUDA]Erro rank[playerid] - by [US]NAVY[SAPD] - 05.08.2011, 15:22
Respuesta: [AJUDA]Erro rank[playerid] - by Sergio_MOW - 05.08.2011, 15:24
Re: [AJUDA]Erro rank[playerid] - by Shadoww5 - 05.08.2011, 16:30
Re: [AJUDA]Erro rank[playerid] - by [US]NAVY[SAPD] - 05.08.2011, 16:45
Re: [AJUDA]Erro rank[playerid] - by Shadoww5 - 05.08.2011, 18:29

Forum Jump:


Users browsing this thread: 3 Guest(s)