[AJUDA] Warning -
atsbs - 25.11.2011
Galera estou fazendo um conce, estou na base ate ai ok, mais ao coloca PlayerToPoint, e ao tentar copilar da esses warning no final do gm.
erros:
PHP код:
C:\Users\Antonio\samp host\gamemodes\testeconce.pwn(45) : warning 217: loose indentation
C:\Users\Antonio\samp host\gamemodes\testeconce.pwn(65) : warning 203: symbol is never used: "IsNumeric"
C:\Users\Antonio\samp host\gamemodes\testeconce.pwn(65) : warning 203: symbol is never used: "ReturnUser"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
3 Warnings.
linhas:
PHP код:
#include <a_samp>
#include <properties>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <cpstream>
new ShopCar[MAX_PLAYERS];
main()
{
print("\n----------------------------------");
print(" conce BSL VERSAO TESTE");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("conce");
AddPlayerClass(0, -2048.0999, -84.5000, 35.0000, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1503.3359, 1432.3585, 10.1191, 3.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/comprarbullet", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(2.0, playerid, 1503.3359, 1432.3585, 10.1191))
{
if(IsPlayerConnected(playerid))
{
ShopCar[playerid] = CreateVehicle(541,-2047.09997559,-84.50000000,35.00000000,0.00000000,-1,-1,15); //Bullet
PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
}
}
}
return 0;
}
Re: [AJUDA] Warning - rjjj - 25.11.2011
Isto deve resolver o seu problema

:
Basta identar o
OnPlayerCommandText e retirar a linha com o seguinte cуdigo

:
Jб que vocк nгo estб usando as funзхes que o mesmo inclui no seu GameMode

.
Bem, aqui estб

:
pawn Код:
#include <a_samp>
#include <properties>
#include <core>
#include <float>
#include <time>
#include <file>
#include <cpstream>
new ShopCar[MAX_PLAYERS];
main()
{
print("\n----------------------------------");
print(" conce BSL VERSAO TESTE");
print("----------------------------------\n");
}
public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("conce");
AddPlayerClass(0, -2048.0999, -84.5000, 35.0000, 269.1425, 0, 0, 0, 0, 0, 0);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerCheckpoint(playerid, 1503.3359, 1432.3585, 10.1191, 3.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/comprarbullet", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(2.0, playerid, 1503.3359, 1432.3585, 10.1191))
{
ShopCar[playerid] = CreateVehicle(541,-2047.09997559,-84.50000000,35.00000000,0.00000000,-1,-1,15); //Bullet
PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
}
}
return 0;
}
Espero ter ajudado

.
Re: [AJUDA] Warning -
atsbs - 25.11.2011
vlw mano, era isso msm, ser new em pwn e foda