12.06.2011, 16:55
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
e aparece estes 3 erros
PHP код:
//TOPO GM
forward ComprarArmas(playerid);
//PUBLICS
public ComprarArmas(playerid, pickupid)
{
if ( pickupid == venderarmas )
{
GameTextForPlayer(playerid, "~y~Voce pode comprar armas aqui.~n~ Use ~r~/comprararmas", 5000, 3);
}
return 1;
//METI A BEIRA DAS PICKUPS
venderarmas = CreatePickup(1239, 2, 290.7466,-107.9998,1001.5156); // AMMO
}
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. |