#define C_Nassa 0x487CB9AA |
#define Nassa 64 |
#define Salario_Nassa 50000 |
if(dini_Int(file, "Profissao") == Nassa){ SendClientMessage(playerid, C_Swat,"~~~~~~~~~~~~~~ Oficial da Nassa ~~~~~~~~~~~~~~"); SendClientMessage(playerid, Branco,"/pegararmas [id]"); SendClientMessage(playerid, Branco,"/algemar [id]"); SendClientMessage(playerid, Branco,"/desalgemar [id]"); SendClientMessage(playerid, Branco,"/prender [id]"); SendClientMessage(playerid, Branco,"/multar [id] [Quantia]"); SendClientMessage(playerid, Branco,"/ad - /fd"); SendClientMessage(playerid, Branco,"/ad2 - /fd2"); SendClientMessage(playerid, Branco,"/cp - Chat Profissгo."); SendClientMessage(playerid, Branco,"/paradoai [ID]"); SendClientMessage(playerid, Branco,"/abrira51 - /fechara51"); SendClientMessage(playerid, C_Nassa,"~~~~~~~~~~~~~~ Oficil da Nassa ~~~~~~~~~~~~~~"); } |
if(listitem == 11) { if(dini_Int(file, "Level")> 130 && dini_Int(file, "Faculdade")> 71 && dini_Int(file, "Carteira") == 1){ SendClientMessage(playerid, 0x80FF00AA, "[INFO] Profissгo alterada com sucesso, agora vocк й um Oficial da nassa."); SendClientMessage(playerid, 0x80FF00AA, "[INFO] Veja os comandos de sua profissгo, Digite: /profissao."); PlayerPlaySound(playerid, 1057, 0, 0, 0); SetPlayerSkin(playerid, 285); dini_IntSet(file, "Profissao", 64); Logarprof(playerid); } else { format(string, sizeof(string), "Requer: %d/130 De level, %d/71 Meses de estudo.E uma carteira de trabalho",dini_Int(file, "Level"), dini_Int(file, "Faculdade")); SendClientMessage(playerid, Vermelho, string); } } |
if(dini_Int(file, "Profissao") == Nassa){ dini_IntSet(file, "SaldoBancario", dini_Int(file, "SaldoBancario")+Salario_Nassa); format(string, sizeof(string), "[INFO] Vocк tem um emprego e recebeu seu sбlario: %d R$",Salario_Nassa); SendClientMessage(i, 0xCAFF95AA, string); } |
if( PlayerInfo[ playerid ][ pMember ] = 105 ) //105 й apenas um exemplo
NascerBase(playerid);
stock NascerBase(playerid)
{
if(Profissao[playerid] == POLICIAL
{
SetPlayerPos(playerid,...)
SetPlayerFacingAngle(...)
SetPlayerSkin(...)
return 1;
}
public OnPlayerSpawn(playerid)
{
if( Profissao[ playerid ] == POLICIAL )
{
SetPlayerPos( playerid, /*Float:X*/, /*Float:Y*/, /*Float:Z*/ );
SetPlayerSkin( playerid, /*SkinID*/ );
//Outras funзхes ...
}
return true;
}
SetPlayerFacingAngle(...) |
{ if( Profissao[ playerid ] == Nassa ) { SetPlayerPos(playerid,210.736,1921.337,17.193)); SetPlayerSkin( playerid,165); } return true; } |
C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2024) : warning 219: local variable "X" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2024) : warning 219: local variable "Y" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2024) : warning 219: local variable "Z" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2066) : warning 219: local variable "aname" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2097) : warning 219: local variable "aname" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2241) : warning 219: local variable "aname" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2280) : warning 219: local variable "aname" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(229 : warning 219: local variable "X" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(229 : warning 219: local variable "Y" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(229 : warning 219: local variable "Z" shadows a variable at a preceding level C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2346) : error 017: undefined symbol "Profissao" C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2346) : warning 215: expression has no effect C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2346) : error 001: expected token: ";", but found "]" C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2346) : error 029: invalid expression, assumed zero C:\Documents and Settings\William_2\Desktop\Servidor Muca\Servidor Muca\gamemodes\MUCA.pwn(2346) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors. |
if( Profissao[ playerid ] == Nassa )
{
SetPlayerPos(playerid,210.736,1921.337,17.193));
SetPlayerSkin( playerid,165);
return true;
}