[Ajuda] Migraзгo de profissхes
#1

eu to tentando botar spawn de profissгo Pegando de outra gm E passando pra minha mais fica dando esses erro num sei se ta precisando de linha ou ta errada

Erros
PHP код:
C:\Users\carlos\Desktop\serve\[gamemodebrasil expert rpg\gm\gamemodes\EXPRPG.pwn(30340) : error 021symbol already defined"SpawnTraficArmas"
C:\Users\carlos\Desktop\serve\[gamemodebrasil expert rpg\gm\gamemodes\EXPRPG.pwn(30345) : warning 203symbol is never used"SpawnTraficArmas" 

linhas

PHP код:
30340new Float:SpawnTraficArmas[][4] =
30341{
30342    {-1109.5930, -1677.401976.37391.8666},
30343    {-1113.7642, -1639.177276.3672273.5291}
30344 }; 
linha da prof



PHP код:
case 1// Traficante de Armas
{
if(
dini_Int(file"Level") > 39){
SendClientMessage(playerid0x008080AA"~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~");
format(stringsizeof(string), "* Parabйns %s, seu curriculo foi aprovado"aname);
SendClientMessage(playeridBrancostring);
SendClientMessage(playerid0x6767B4AA"{F81414}•{FFFFFF}  Vocк trabalharб como Traficante de Armas");
SendClientMessage(playeridBranco"{F81414}•{FFFFFF}  Vocк receberб um salбrio de R$500.");
SendClientMessage(playerid0x6767B4AA"{F81414}•{FFFFFF}  Para ver os comandos de seu emprego: /profissao");
SendClientMessage(playerid0x008080AA"~~~~~~~~~~~~~~~~~~~~~~~~ Traficante de Armas ~~~~~~~~~~~~~~~~~~~~~~~~");
PlayerPlaySound(playerid1057000);
dini_IntSet(file"Profissao"11);
Logarprof(playerid);
TogglePlayerControllable(playerid1);
} else {
TogglePlayerControllable(playerid1);
SendClientMessage(playeridVermelho"** Vocк nгo possui todos os requerimentos nescessбrios!");
}

Reply
#2

Vocк so definiu o random spawn e nгo esta utilizando ele , ou estб ?

de qualquer forma:
pawn Код:
Em OnPlayerSpawn(playerid):

new rand = random(sizeof(SpawnTraficArmas));
SetPlayerPos(playerid, SpawnTraficArmas[rand][0], SpawnTraficArmas[rand][1]);
Usa isso como base...
Reply
#3

Eu Fiz O que vc mando e deu esses erros aki


Quote:

C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(4246) : warning 219: local variable "aname" shadows a variable at a preceding level
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(4535) : warning 219: local variable "aname" shadows a variable at a preceding level
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(4876) : warning 219: local variable "aname" shadows a variable at a preceding level
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(4946) : warning 219: local variable "aname" shadows a variable at a preceding level
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5024) : error 003: declaration of a local variable must appear in a compound block
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5027) : error 055: start of function body without function header
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(502 : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5029) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5031) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5034) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(503 : error 054: unmatched closing brace ("}")
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5042) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5044) : error 054: unmatched closing brace ("}")
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5045) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5050) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5059) : error 021: symbol already defined: "GetPlayerName"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5067) : error 021: symbol already defined: "SetPlayerInterior"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5103) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(510 : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5125) : error 021: symbol already defined: "dini_IntSet"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5126) : error 021: symbol already defined: "dini_IntSet"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5127) : error 021: symbol already defined: "dini_IntSet"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5130) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5132) : error 021: symbol already defined: "dini_IntSet"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5134) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5137) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5139) : error 021: symbol already defined: "dini_IntSet"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5141) : error 010: invalid function or declaration
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(5146) : error 021: symbol already defined: "SendClientMessage"
C:\Users\carlos\Desktop\serve\[gamemode] brasil expert rpg\gm\gamemodes\EXPRPG.pwn(514 : error 010: invalid function or declaration

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


26 Errors.

depois que botei apareceu esses erro antes nao estava
Reply
#4

26 erros й resultante de um bracket mal posicionado.
Reply
#5

eu so botei isso
Quote:

new rand = random(sizeof(SpawnTraficArmas));
SetPlayerPos(playerid, SpawnTraficArmas[rand][0], SpawnTraficArmas[rand][1]);

tem algo errado
Reply
#6

Pior que nгo tem nada errado no codigo que te passei , vocк deve ter colocado algo ou em lugar errado... e como o luan falo , ta faltando {} , da uma olhada ai й se nгo der certo comenta aqui dnv...
Reply
#7

Sera que nгo tem nem um outro sistema sem que precisar i no jogo e fica dano /save nas hq, queria um jeito mais fбcil de botar vcs tem ai pronto ? ou indica uma gm para retirar ?
Reply
#8

vocк quer facilitar um modo de pegar coordenadas ? pelo /save й tгo simples...
Reply
#9

nгo tipo minha gm tem mais de 26 prof ai queria um jeito mais pratico e rapido de fazer
e ela nгo tem hq

exemplo chegar em um local e digita /sethq e o numero da profissгo
Reply
#10

Eu acho que nгo tem um modo mais fбcil , da trabalho mas vai recompensa muito quando terminar

O Random Spawn funfo ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)