Have small error !! - 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: Have small error !! (
/showthread.php?tid=619572)
Have small error !! -
TYDS - 19.10.2016
Код:
./includes/callbacks.pwn(4048) : error 033: array must be indexed (variable "Burger")
./includes/callbacks.pwn(4053) : warning 219: local variable "random" shadows a variable at a preceding level
./includes/callbacks.pwn(4053) : error 001: expected token: ";", but found "("
./includes/callbacks.pwn(4053) : warning 215: expression has no effect
./includes/callbacks.pwn(4055) : error 012: invalid function call, not a valid address
./includes/callbacks.pwn(4055) : error 029: invalid expression, assumed zero
./includes/callbacks.pwn(4055) : error 029: invalid expression, assumed zero
./includes/callbacks.pwn(4055) : fatal error 107: too many error messages on one line
this code i put it under onplayerentercheckpoint
Код:
if(fuck[playerid]) // if it's true
{
new random(7521 - 3249);
GivePlayerCash(playerid, random(7521 - 3249) + 1000);
DisablePlayerCheckpoint(playerid);
fuck[playerid] = false;
}
Re: Have small error !! -
Kaliber - 19.10.2016
You use random wrong..do it like this:
PHP код:
if(fuck[playerid]) // if it's true
{
new r = random(4273)+3249; //This gives you a sum between 3249 - 7521
GivePlayerCash(playerid,r + 1000);
DisablePlayerCheckpoint(playerid);
fuck[playerid] = false;
}
Re: Have small error !! -
TYDS - 19.10.2016
oh i will try thank you
Re: Have small error !! -
TYDS - 19.10.2016
Nothing
Re: Have small error !! -
TYDS - 19.10.2016
Nothing i have fixed