|
|
#1 |
|
Big Clucker
![]() ![]() Join Date: Aug 2011
Posts: 151
Reputation: 0
|
Ola eu estive pesquisando como criar um comando de Teleporte e encontrei um tutorial e la estava isto mas ta dando 3 Erros:
Code:
if(strcmp(cmdtext,"/ilha", true)==0)
{
GameTextForPlayer(playerid, "~y~~h~]] ~r~~h~PEKENA ILHA ~y~~h~]]", 2500, 4);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,263.6730,2905.4475,7.4086);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,9999);
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "{FF0000}[TELEPORTE] {FFFFFF}%s foi para uma Pekena Ilha {FF0000}( /Ilha )", pname);
SendClientMessageToAll(0xFF0000FF, string);
return 1;
}
Code:
C:\Users\Vitor\Desktop\Meu Primeiro Server\gamemodes\Server.pwn(19) : error 010: invalid function or declaration C:\Users\Vitor\Desktop\Meu Primeiro Server\gamemodes\Server.pwn(27) : error 021: symbol already defined: "GetPlayerName" C:\Users\Vitor\Desktop\Meu Primeiro Server\gamemodes\Server.pwn(30) : error 010: invalid function or declaration C:\Users\Vitor\Desktop\Meu Primeiro Server\gamemodes\Server.pwn(33) : warning 203: symbol is never used: "pname" Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 3 Errors. |
|
|
|
|
|
#2 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2012
Location: Notepad++
Posts: 1,983
Reputation: 142
|
Retire o GetPlayerName e tente Compilar.
|
|
|
|
|
|
#3 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2012
Location: Los Santos-SA
Posts: 413
Reputation: 9
|
pawn Code:
|
|
|
|
|
|
#4 |
|
Big Clucker
![]() ![]() Join Date: Aug 2011
Posts: 151
Reputation: 0
|
Ta tendo um erro agora Panico
Na linha 20: Code:
if(strcmp(cmdtext,"/ilha", true)==0) <-- Linha 20
{
GameTextForPlayer(playerid, "~y~~h~]] ~r~~h~PEKENA ILHA ~y~~h~]]", 2500, 4);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,263.6730,2905.4475,7.4086);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,9999);
format(string, sizeof(string), "{FF0000}[TELEPORTE] {FFFFFF}%s foi para uma Pekena Ilha {FF0000}( /Ilha )", pname);
SendClientMessageToAll(0xFF0000FF, string); return 1;}
|
|
|
|
|
|
#5 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jan 2012
Location: Los Santos-SA
Posts: 413
Reputation: 9
|
cal é a linha que da o erro?
|
|
|
|
|
|
#6 |
|
Big Clucker
![]() ![]() Join Date: Aug 2011
Posts: 151
Reputation: 0
|
Eu postei ai
|
|
|
|
|
|
#7 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2012
Location: Brazil
Posts: 2,066
Reputation: 164
|
O Erro não esta nesta linha, posta o comando/linhas de cima.
|
|
|
|
|
|
#8 |
|
Big Clucker
![]() ![]() Join Date: Aug 2011
Posts: 151
Reputation: 0
|
Eu estou criando um server do 0
E tudo que ele tem e isto : Code:
// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT
#include <a_samp>
#include <zcmd>
#if defined FILTERSCRIPT
#endif
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Test");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
if(strcmp(cmdtext,"/ilha", true)==0)
{
GameTextForPlayer(playerid, "~y~~h~]] ~r~~h~PEKENA ILHA ~y~~h~]]", 2500, 4);
SetPlayerInterior(playerid,0);
SetPlayerPos(playerid,263.6730,2905.4475,7.4086);
ResetPlayerWeapons(playerid);
GivePlayerWeapon(playerid,26,9999);
format(string, sizeof(string), "{FF0000}[TELEPORTE] {FFFFFF}%s foi para uma Pekena Ilha {FF0000}( /Ilha )", pname);
SendClientMessageToAll(0xFF0000FF, string); return 1;}
|
|
|
|
|
|
#9 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Jul 2012
Location: Maquiné/RS
Posts: 330
Reputation: 42
|
pawn Code:
|
|
|
|
|
|
#10 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: May 2012
Location: Ji-Parana - RO ,Brazil
Posts: 663
Reputation: 56
|
/\ para que include zcmd se você esta uzando strcmp ?
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Tutorial] Criando Comando de Teleporte Com Veículo | .FuneraL. | Lançamentos/Releases | 6 | 30/04/2012 01:27 AM |
| comando de teleporte | williamgato | Português/Portuguese | 4 | 14/01/2011 12:14 PM |
| Novo em Pawn, erro com Pickup de teleporte | victor_h666 | Português/Portuguese | 4 | 29/12/2010 12:57 PM |
| [AJUDA] Fui por um teleporte e deu um erro | Rafael_Nerd | Português/Portuguese | 4 | 11/01/2010 09:25 PM |