Value can't be anything else than 0? - 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: Value can't be anything else than 0? (
/showthread.php?tid=416380)
Value can't be anything else than 0? -
reckst4r - 17.02.2013
I've been trying to figure out what's wrong with this for a few hours.
pawn Код:
if(strcmp(option, "model", true) == 0)
{
new value = modelid;
GateInfo[i][gModel] = value;
format(string, sizeof(string), "You have changed the model of the gate near you to %d", GateInfo[i][gModel]);
SendClientMessage(playerid, COLOR_YELLOW, string);
SaveGates();
LoadGates(playerid);
return 1;
}
I've tried so many different things, and no matter what it gets set to 0.
Re: Value can't be anything else than 0? -
reckst4r - 17.02.2013
Nevermind, I got it working..