SA-MP Forums Archive
[AJUDA] Comandos /ir e /trazer com erro - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [AJUDA] Comandos /ir e /trazer com erro (/showthread.php?tid=272738)



[AJUDA] Comandos /ir e /trazer com erro - Niko_Bellik - 29.07.2011

Esses dois comandos estгo com os seguintes erros:

C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPGTESTE.pwn(767) : error 017: undefined symbol "idx"
C:\Users\Felipe\Documents\SERVER SAMP\gamemodes\BRASILRPGTESTE.pwn(78 : error 017: undefined symbol "idx"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

Quem poder ajudar ai, agradeзo


Re: [AJUDA] Comandos /ir e /trazer com erro - Shadoww5 - 29.07.2011

PHP код:
new idx



Re: [AJUDA] Comandos /ir e /trazer com erro - RockFire - 29.07.2011

PHP код:
new idx
@EDIT Shadoww5 jб postou antes :\


Respuesta: [AJUDA] Comandos /ir e /trazer com erro - [Red]Maninho - 29.07.2011

Tenho Esse Mano

PHP код:
if(strcmp(cmd"/trazer"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
if(
IsPlayerAdmin(playerid)){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"(ERRO) Digite: /trazer [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
new 
interiormeu;
interiormeu GetPlayerInterior(playerid);
SetPlayerInterior(plidinteriormeu);
new 
Float:XFloat:YFloat:Z;
GetPlayerPos(playeridXYZ);
SetPlayerPos(plidXYZ);
{
new 
VehicleID;
VehicleID GetPlayerVehicleID(plid);
SetVehiclePos(VehicleID,X+4,Y+4,Z);
PutPlayerInVehicle(plid,VehicleID,0);
}
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
return 
1;
}else{
SendClientMessage(playerid0xFF0000AA"(ERRO) ID invбlido");
return 
1;
}
}

e Esse De IR

PHP код:
if(strcmp(cmd"/ir"true) == 0) {
new 
aname[MAX_PLAYER_NAME];
GetPlayerName(playeridanameMAX_PLAYER_NAME);
if(
IsPlayerAdmin(playerid)){
new 
tmp[256];
new 
plid;
tmp strtok(cmdtextidx);
if(!
strlen(tmp)) {
SendClientMessage(playeridVermelho"(ERRO) Digite: /ir [id]");
return 
1;
}
plid strval(tmp);
if(
IsPlayerConnected(plid)){
new 
interiordele;
interiordele GetPlayerInterior(plid);
SetPlayerInterior(playeridinteriordele);
new 
Float:XFloat:YFloat:Z;
GetPlayerPos(plidXYZ);
SetPlayerPos(playeridXYZ);
{
new 
VehicleID;
VehicleID GetPlayerVehicleID(playerid);
SetVehiclePos(VehicleID,X+1,Y+1,Z);
PutPlayerInVehicle(playerid,VehicleID,0);
}
new 
pname[MAX_PLAYER_NAME];
GetPlayerName(plidpnameMAX_PLAYER_NAME);
return 
1;
}else{
SendClientMessage(playeridVermelho"(ERRO)ID invбlido");
return 
1;
}
}

Espero Ter Ajudado!


Re: [AJUDA] Comandos /ir e /trazer com erro - Niko_Bellik - 29.07.2011

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
PHP код:
new idx
Nгo acredito que era sу isso UHAUAHUAHAU'
Mas vlw! ^^