Have small error !!
#1

Код:
./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;
    }
Reply
#2

You use random wrong..do it like this:

PHP код:
if(fuck[playerid]) // if it's true  
{     
    new 
random(4273)+3249//This gives you a sum between 3249 - 7521
    
GivePlayerCash(playerid,1000);
    
DisablePlayerCheckpoint(playerid);
    
fuck[playerid] = false;

Reply
#3

oh i will try thank you
Reply
#4

Nothing
Reply
#5

Nothing i have fixed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)