25.11.2011, 23:43
Galera agora apareceu esse erro aki
ou seja o erro foi no retun oq sera que ta faltando ?
PHP код:
\testeconce.pwn(271) : error 010: invalid function or declaration
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
1 Error.
PHP код:
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, -2065.2861,-81.7028,35.1641, 3.0);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp("/comprarbullet", cmdtext, true, 10) == 0)
{
if(PlayerToPoint(3.0, playerid, -2065.2861,-81.7028,35.1641))
{
ShopCar[playerid] = CreateVehicle(541,-2047.09997559,-84.50000000,35.00000000,0.00000000,-1,-1,15); //Bullet
PutPlayerInVehicle(playerid, ShopCar[playerid], 0);
SendClientMessage(playerid, COLOR_GREY, "Voce comprou um Bullet");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Voce na esta na Concecionaria");
}
}
}
return 0;
}