[Ajuda] Texto na seguinte cordenada
#1

Boas eu pus uma pickup numa loja e ao ir a pickup queria que dissese o comando para o pessoal saber como comprar a arma... e fiz o seguinte

PHP код:
//TOPO GM
forward ComprarArmas(playerid);
//PUBLICS
public ComprarArmas(playeridpickupid)
{
    if ( 
pickupid == venderarmas )
    {
       
GameTextForPlayer(playerid"~y~Voce pode comprar armas aqui.~n~ Use ~r~/comprararmas"50003);
    }
    return 
1;
//METI A BEIRA DAS PICKUPS
venderarmas CreatePickup(12392290.7466,-107.9998,1001.5156); // AMMO

e aparece estes 3 erros
Quote:

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3357) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(3589) : warning 204: symbol is assigned a value that is never used: "cut"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(5752) : error 025: function heading differs from prototype
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(5754) : error 017: undefined symbol "venderarmas"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(10665) : error 017: undefined symbol "venderarmas"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42332) : warning 202: number of arguments does not match definition
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43862) : warning 219: local variable "alarme" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43862) : warning 219: local variable "portas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43862) : warning 219: local variable "capo" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43862) : warning 219: local variable "portamalas" shadows a variable at a preceding level
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(43886) : warning 203: symbol is never used: "SetWorld"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(42074) : warning 204: symbol is assigned a value that is never used: "roadblocktimer"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


3 Errors.

Reply
#2

PHP код:
new venderarmas
Reply
#3

e os erros ? e porque esta alguma coisa mal
Reply
#4

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(5754) : error 017: undefined symbol "venderarmas"
C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(10665) : error 017: undefined symbol "venderarmas"

й porque ta falatando a New no topo!

sobre os outros erros nгo sei resolver pois vc nгo posto os cod.
Reply
#5

da este erro agora

Quote:

C:\Users\Ricardo Moreira\Desktop\RedContry\RC-RP\gamemodes\RC-RP.pwn(5753) : error 025: function heading differs from prototype

ta aki a linha

PHP код:
public ComprarArmas(playeridpickupid
Reply
#6

pawn Код:
// Topo
new venderarmas;
pawn Код:
// OnGameModeInit
venderarmas = CreatePickup(1239, 2, 290.7466,-107.9998,1001.5156); // AMMO
pawn Код:
// OnPlayerPickUpPickup
if (pickupid == venderarmas )
{
    GameTextForPlayer(playerid, "~y~Voce pode comprar armas aqui.~n~ Use ~r~/comprararmas", 5000, 3);
}
Muito Mais Fбcil que Assim.
Reply
#7

mas ja existe esse public ve

PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if ( 
pickupid == licenses )
    {
       
GameTextForPlayer(playerid"~y~Voce pode comprar licencas Aqui.~n~ Use ~r~/comprarlicenca"50003);
    }
    return 
1;

Reply
#8

Quote:
Originally Posted by Jonathan_Feitosa
Посмотреть сообщение
pawn Код:
// Topo
new venderarmas;
pawn Код:
// OnGameModeInit
venderarmas = CreatePickup(1239, 2, 290.7466,-107.9998,1001.5156); // AMMO
pawn Код:
// OnPlayerPickUpPickup
if (pickupid == venderarmas )
{
    GameTextForPlayer(playerid, "~y~Voce pode comprar armas aqui.~n~ Use ~r~/comprararmas", 5000, 3);
}
Muito Mais Fбcil que Assim.
pqp,eu ia posta a msm coisa,Jonathan_Feitosa o legeirinho
Reply
#9

pawn Код:
//TOPO GM
new venderarmas;
forward ComprarArmas(playerid, pickupid);
pawn Код:
// Qualquer Local.
public ComprarArmas(playerid, pickupid)
{
    if ( pickupid == venderarmas )
    {
       GameTextForPlayer(playerid, "~y~Voce pode comprar armas aqui.~n~ Use ~r~/comprararmas", 5000, 3);
    }
    return 1;
}
pawn Код:
// й no OnGameModeInit vocк bota :
venderarmas = CreatePickup(1239, 2, 290.7466,-107.9998,1001.5156); // AMMO
Dois tipos...
Reply
#10

eu vou la e nao aparece :S
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)