What's wrong with this code?
#1

Hi im having a problem with this code, can you please help me?

Im getting this error on the code

Код:
C:\Users\vMikkelReimer\Desktop\Samp stuff for 0,3d  June-May2012\Samp crap 2012\gf_jan12.pwn(32054) : error 029: invalid expression, assumed zero
Код:
This is the line with the error:
GiveMoney(playerid, += DropInfo[i][dAmount][0];
Код:
    		    	else if(DropInfo[i][dType] == 7) //Money
    		    	{
    		    	    ApplyAnimation(playerid, "BOMBER","BOM_Plant_In",4.0,0,0,0,0,0);
			            format(string,sizeof(string),"* %s picks up $%d dollars.",Name(playerid),DropInfo[i][dAmount]);
			            ProxDetector(30.0,playerid,string,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED,COLOR_RED);
						PlayerInfo[playerid][pCash] += DropInfo[i][dAmount][0];
						GiveMoney(playerid, += DropInfo[i][dAmount][0];
						DropInfo[i][dAmount][0] = 0;
						DropInfo[i][dType] = 0;
						DestroyObject(DropObject[i]);
    		    	}
    		    	return 1;
    		    }
Reply


Messages In This Thread
What's wrong with this code? - by Mikkel_RE - 12.01.2013, 22:34
Re: What's wrong with this code? - by EAsT-OAK_510 - 12.01.2013, 22:36
Re: What's wrong with this code? - by Infinity90 - 12.01.2013, 22:37
Re: What's wrong with this code? - by nmader - 12.01.2013, 22:38
Re: What's wrong with this code? - by Mikkel_RE - 12.01.2013, 22:42
Re: What's wrong with this code? - by nmader - 12.01.2013, 22:49
Re: What's wrong with this code? - by nmader - 12.01.2013, 22:51
Re: What's wrong with this code? - by Infinity90 - 12.01.2013, 22:52
Re: What's wrong with this code? - by Mikkel_RE - 12.01.2013, 22:55

Forum Jump:


Users browsing this thread: 1 Guest(s)