[Ajuda] posto de gazolina
#1

Ola galera sou novo aki estou precisando de suas ajuda com um codico pawno
baixei uma ilha ela tem um posto euq queria ativar esse posto para que os player podem abastecer nele
coredenadas:
Код:
AddPlayerClass(115,676.9292,-2866.3413,13.0899,71.3445,0,0,0,0,0,0);
Codico dos postos:
Код:
if(PlayerToPoint(7.0, i, 70.4532,1219.1954,18.8117) || PlayerToPoint(7.0, i, -90.2719,-1169.9579,2.3964) || PlayerToPoint(7.0, i, -2411.5728,976.1896,45.4609) || PlayerToPoint(7.0, i, 2114.8413,919.9194,10.8203)){//Fort Carson
GameTextForPlayer(i,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
gostaria que colocase ese codico pra funcionar nas cordenadas que dei peзo so isso espero receber ajuda!
Reply
#2

Код:
[if(PlayerToPoint(7.0, i, 70.4532,1219.1954,18.8117) || PlayerToPoint(7.0, i, -90.2719,-1169.9579,2.3964) || PlayerToPoint(7.0, i, -2411.5728,976.1896,45.4609) || PlayerToPoint(7.0, i, 2114.8413,919.9194,10.8203 || PlayerToPoint(7.0, i, 676.9292,-2866.3413,13.0899)){//Fort Carson
GameTextForPlayer(i,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}
Reply
#3

mano procura isso no teu gm
pawn Код:
public IsAtGasStation(playerid)
{
}
Reply
#4

caioTJF da erro no compiler
eerro:
Код:
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(2259) : error 017: undefined symbol "SetupZombie"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4384) : error 017: undefined symbol "KickZombies"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4422) : error 017: undefined symbol "GetNumberOfPlayersOnThisIP"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4748) : error 017: undefined symbol "filena"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4755) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4757) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4759) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4761) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4762) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4768) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4770) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4771) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4774) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4775) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4777) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4778) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4781) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4782) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4784) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4785) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4788) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4789) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4791) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4792) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4795) : error 017: undefined symbol "filene"
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(4796) : error 017: undefined symbol "filene"

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


26 Errors.
Reply
#5

Fail
use zmcd
Reply
#6

sou novo em samp nao sei muita coisa ainda sei quase nada oq e zmcd?
Reply
#7

Apenas fas isso ae:

if(IsPlayerInRangeOfPoint(i, 20.0, 676.9292,-2866.3413,13.0899))
{
GameTextForPlayer(i,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}

Espero que funcione!!
Reply
#8

Quote:
Originally Posted by fabioiuri
Посмотреть сообщение
Apenas fas isso ae:

if(IsPlayerInRangeOfPoint(i, 20.0, 676.9292,-2866.3413,13.0899))
{
GameTextForPlayer(i,"~h~~w~Posto ~y~Petobras ~n~ Digite~r~/~r~abastecer",3000,4);
AreaPosto[i] = 1;
} else {
if(AreaPosto[i] == 1){
AreaPosto[i] = 0;
}

Espero que funcione!!
da 3 erros
Код:
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(24000) : error 010: invalid function or declaration
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(24004) : error 010: invalid function or declaration
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(24005) : error 010: invalid function or declaration
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(29295) : warning 219: local variable "anim" shadows a variable at a preceding level
C:\DOCUME~1\Vitor\Desktop\SERVID~1\GAMEMO~1\EXPRPG.pwn(29301) : warning 219: local variable "anim" shadows a variable at a preceding level
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#9

variavel a anim ja esta definida mude exempmi AniM provalvemente e um new posta as linhas dos codigos desse modo nao tem como ajudar.
Reply
#10

Quote:
Originally Posted by Q.I
Посмотреть сообщение
variavel a anim ja esta definida mude exempmi AniM provalvemente e um new posta as linhas dos codigos desse modo nao tem como ajudar.
Nao entendi oq quis dizer!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)