11.09.2011, 21:41
ajeitei e ficou assim
mais deu esse erro
PHP код:
#include <a_samp>
#include <a_npc>
new aviaonpc;
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("aviao");
AddPlayerClass(0,1989.14086914,-2593.35913086,12.54687500, 269.1425, 0, 0, 0, 0, 0, 0);
print("aviao connectado");
ConnectNPC("aviao","aviao");
aviaonpc = CreateVehicle(592, -69.6176,2505.2476,17.2085, 0.0, 0, 0,500);
return 1;
}
public OnPlayerSpawn(playerid)
{
if(IsPlayerNPC(playerid)) //Verifica se o jogador й um NPC.
{
new npcname[MAX_PLAYER_NAME];
GetPlayerName(playerid, npcname, sizeof(npcname)); //Obtendo o nome do(s) NPC(s).
if(!strcmp(npcname, "aviao", true)) //Checando se o nome do NPC й MeuPrimeiroNPC
{
PutPlayerInVehicle(playerid, aviaonpc, 0); //Colocar o NPC dentro do veнculo que criamos para isso.
}
return 1;
}
PHP код:
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(29) : warning 217: loose indentation
C:\Documents and Settings\Antonio\Desktop\Cуpia de samp host\gamemodes\aviao.pwn(31) : error 030: compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.