if(strcmp(cmdtext, "/stunt", true) == 0) { if(strcmp(cmdtext,"/Sair", true)&&Block[playerid]==true) return SendClientMessage(playerid,0xFF0000AA,"[BCF] - Vocк esta em uma DM, use apenas o comando: /sair")&& GameTextForPlayer(playerid,"~r~/Sair",3000,1); if(Arena[playerid] == 1) return SendClientMessage(playerid, COLOR_RED, "[BFC] - Voce so pode sair daqui apos morrer!"); if(IsPlayerInAnyVehicle(playerid)) { new VehicleID; VehicleID = GetPlayerVehicleID(522); GameTextForPlayer(playerid,"~g~Stunt",2500,0); SetVehiclePos(VehicleID,-1464.6495361328,1557.9499511719,1053.0029296875); new pname[MAX_PLAYER_NAME]; new string[256]; GetPlayerName(playerid, pname, MAX_PLAYER_NAME); format(string, sizeof(string), "[INFO]*** %s foi para o Stunt ( /stunt )", pname); SendClientMessageToAll(COR_LARANJA, string); SetPlayerInterior(playerid,14); } else { SetPlayerInterior(playerid,14); SetPlayerPos(playerid,-1464.6495361328,1557.9499511719,1053.0029296875); } return PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0); }
SendClientMessage(playerid,0xFF0000AA,"Voce nao pode entrar com um veiculo na stunt so com motos")
if(strcmp(cmdtext, "/stunt", true) == 0)
{
if(strcmp(cmdtext, "/Sair", true))
{
if(Block[playerid] == true)
{
SendClientMessage(playerid, 0xFF0000AA, "[BCF] - Vocк esta em uma DM, use apenas o comando: /sair");
GameTextForPlayer(playerid, "~r~/Sair", 3000, 1);
return 1;
}
}
if(Arena[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "[BFC] - Voce so pode sair daqui apos morrer!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{ // Leia a linha abaixo \/
if(GetPlayerVehicleID(playerid) != 522 || GetPlayerVehicleID(playerid) != 521 /*|| GetPlayerVehicleID(playerid) != IDmoto */)
{
SendClientMessageToAll(COR_LARANJA, "[ERRO] Vocк nгo estб em uma moto!);
return 1;
}
else
{
GameTextForPlayer(playerid,"~g~Stunt",2500,0);
SetVehiclePos(GetPlayerVehicleID(playerid), -1464.6495361328, 1557.9499511719, 1053.0029296875);
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[INFO]*** %s foi para o Stunt ( /stunt )", pname);
SendClientMessageToAll(COR_LARANJA, string);
SetPlayerInterior(playerid, 14);
return 1;
}
}
else
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1464.6495361328, 1557.9499511719, 1053.0029296875);
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0);
}
return 1;
}
new kMoto[ 3 ];
kMoto[ 0 ] = AddStaticVehicle( ... );
kMoto[ 1 ] = AddStaticVehicle( ... );
kMoto[ 2 ] = AddStaticVehicle( ... );
if( !strcmp( cmdtext, "/kTeleporte", true ) )
{
new Veiculo = GetPlayerVehicleID( playerid );
if( IsPlayerInAnyVehicle( playerid ) )
{
if( newstate == PLAYER_STATE_DRIVER )
{
if( ( Veiculo >= kMoto[ 0 ] ) && ( Veiculo <= kMoto[ 3 ] ) )
{
//Funзхes
}
else SendClientMessage( playerid, -1, "Vocк nгo pode teleportar-se com esse veiculo!" );
}
else SendClientMessage( playerid, -1, "Vocк sу pode teleportar-se se estiver a dirigir uma moto!" );
}
else SendClientMessage( playerid, -1, "Vocк sу pode teleportar-se e estiver em um veiculo!" );
return true;
}
Topo:
PHP код:
PHP код:
PHP код:
Sу coloquei desta forma para ser diferente, para variar um pouco do comum. |
C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(1459) : error 029: invalid expression, assumed zero C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(1460) : error 029: invalid expression, assumed zero C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(1461) : error 029: invalid expression, assumed zero C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3802) : error 017: undefined symbol "newstate" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3804) : error 032: array index out of bounds (variable "kMoto") Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 5 Errors.
Tenta assim:
pawn Код:
|
C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : error 037: invalid string (possibly non-terminated string) C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : error 029: invalid expression, assumed zero C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : error 017: undefined symbol "ERRO" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 4 Errors.
if(strcmp(cmdtext, "/stunt", true) == 0)
{
if(strcmp(cmdtext, "/Sair", true))
{
if(Block[playerid] == true)
{
SendClientMessage(playerid, 0xFF0000AA, "[BCF] - Vocк esta em uma DM, use apenas o comando: /sair");
GameTextForPlayer(playerid, "~r~/Sair", 3000, 1);
return 1;
}
}
if(Arena[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "[BFC] - Voce so pode sair daqui apos morrer!");
return 1;
}
if(IsPlayerInAnyVehicle(playerid))
{ // Leia a linha abaixo \/
if(GetPlayerVehicleID(playerid) != 522 || GetPlayerVehicleID(playerid) != 521 /*|| GetPlayerVehicleID(playerid) != IDmoto */)
{
SendClientMessageToAll(COR_LARANJA, "[ERRO] Vocк nгo estб em uma moto"!);
return 1;
}
else
{
GameTextForPlayer(playerid,"~g~Stunt",2500,0);
SetVehiclePos(GetPlayerVehicleID(playerid), -1464.6495361328, 1557.9499511719, 1053.0029296875);
new pname[MAX_PLAYER_NAME];
new string[256];
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string), "[INFO]*** %s foi para o Stunt ( /stunt )", pname);
SendClientMessageToAll(COR_LARANJA, string);
SetPlayerInterior(playerid, 14);
return 1;
}
}
else
{
SetPlayerInterior(playerid, 14);
SetPlayerPos(playerid, -1464.6495361328, 1557.9499511719, 1053.0029296875);
PlayerPlaySound(playerid,1058, 0.0, 0.0, 0.0);
}
return 1;
}
Vocк se esqueceu de fechar o " do SendClientMessage, marcos coloca esse ai debaixo
pawn Код:
|
C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : error 001: expected token: "-string end-", but found "-identifier-" C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : error 029: invalid expression, assumed zero C:\Users\marcos\Desktop\MyServers\Brasil City Furious\gamemodes\BCF.pwn(3799) : warning 215: expression has no effect Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 2 Errors.