FALSE and oldoID - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: FALSE and oldoID (
/showthread.php?tid=524759)
FALSE and oldoID -
0B3Y - 08.07.2014
Hello guys, today i tried to compiling a .pwn but it gave me this error
Код:
C:\Documents and Settings\User\My Documents\SA-MP - 0.3e Server\gamemodes\tes2.pwn(3826) : error 017: undefined symbol "FALSE"
C:\Documents and Settings\User\My Documents\SA-MP - 0.3e Server\gamemodes\tes2.pwn(52126) : warning 204: symbol is assigned a value that is never used: "oldoID"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
And i've searching in the forum that i must put
somewhere but i dont know where to put it in... And this is the code
Код:
Line 3823-3826
stock StopRefueling(playerid)
{
GivePlayerCash(playerid, -RefuelingVehiclePrice[playerid]);
SendFormattedMessage(playerid, COLOR_WHITE,"Your fuel tank is refueled, and you paying $%d.", RefuelingVehiclePrice[playerid]);
Код:
CMD:createobject(playerid, params[])
{
new string[128], object;
if(PlayerInfo[playerid][pAdmin] < 2) return -1;
if(sscanf(params, "i", object)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /createobject [objectid]");
for(new idx=1; idx<MAX_COBJECTS; idx++)
{
if(!ObjectInfo[idx][oModel])
{
GetPlayerPos(playerid, ObjectInfo[idx][oX], ObjectInfo[idx][oY], ObjectInfo[idx][oZ]);
ObjectInfo[idx][oModel] = object;
Line52126> oldoID = ObjectInfo[idx][oModel];
ObjectInfo[idx][oX] = ObjectInfo[idx][oX] + 2;
ObjectInfo[idx][oY] = ObjectInfo[idx][oY] + 2;
ObjectInfo[idx][oRX] = 0;
ObjectInfo[idx][oRY] = 0;
ObjectInfo[idx][oRZ] = 0;
// Creating
ObjectInfo[idx][obj] = CreateDynamicObject(ObjectInfo[idx][oModel], ObjectInfo[idx][oX], ObjectInfo[idx][oY], ObjectInfo[idx][oZ], ObjectInfo[idx][oRX], ObjectInfo[idx][oRY], ObjectInfo[idx][oRZ]);
//O-bjectInfo[idx][oText] = CreateDynamic3DTextLabel(string, COLOR_WHITE, ObjectInfo[idx][oX], ObjectInfo[idx][oY], ObjectInfo[idx][oZ], 10);
// Text
format(string, sizeof(string), "AdmWarn: %s has created object ID %d. (Object: %d)", GetPlayerNameEx(playerid), idx, object);
ABroadCast(COLOR_DARKRED, string, 2);
Log("logs/cobjects.log", string);
idx = MAX_COBJECTS;
}
}
return 1;
}
Aand one question, how much post i need to give someone a reputations?
Re: FALSE and oldoID -
0B3Y - 08.07.2014
Nevermind... I fixed it by my self XD