SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 15/04/2012, 03:43 AM   #1
Burn_
Little Clucker
 
Join Date: Feb 2012
Posts: 31
Reputation: 1
Default error 029: invalid expression, assumed zero

What is wrong with this line:

Code:
if(PlayerInfo[i][] > 0 && VanLSa[i] == 0 && GetPlayerInterior(i) == 0 && GetPlayerVirtualWorld(i) == 0)
I have this error: error 029: invalid expression, assumed zero
Burn_ is offline   Reply With Quote
Old 15/04/2012, 03:47 AM   #2
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,422
Reputation: 973
Default Re: error 029: invalid expression, assumed zero

PlayerInfo[i][]

[] = invalid.
MP2 is offline   Reply With Quote
Old 15/04/2012, 03:54 AM   #3
Burn_
Little Clucker
 
Join Date: Feb 2012
Posts: 31
Reputation: 1
Default Re: error 029: invalid expression, assumed zero

Nope, I have the same error.
Burn_ is offline   Reply With Quote
Old 15/04/2012, 03:57 AM   #4
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,422
Reputation: 973
Default Re: error 029: invalid expression, assumed zero

PlayerInfo[i][x]

You need to put something where x is. What are you trying to check is more than 0?
MP2 is offline   Reply With Quote
Old 15/04/2012, 04:00 AM   #5
Burn_
Little Clucker
 
Join Date: Feb 2012
Posts: 31
Reputation: 1
Default Re: error 029: invalid expression, assumed zero

PlayerInfo[i][0]

I'm put 0. And now is works. Tnx man
Burn_ is offline   Reply With Quote
Old 15/04/2012, 04:04 AM   #6
MP2
Godfather
 
MP2's Avatar
 
Join Date: Jan 2011
Location: England
Posts: 6,422
Reputation: 973
Default Re: error 029: invalid expression, assumed zero

Yeah but that's going to fuck stuff up. If you don't need it, remove it..
MP2 is offline   Reply With Quote
Old 31/05/2012, 10:34 PM   #7
DanMystro
Little Clucker
 
Join Date: May 2012
Posts: 5
Reputation: 0
Default Re: error 029: invalid expression, assumed zero

for(new i; i< MAX_PLAYERS;++)
error 029: invalid expression, assumed zero

Please tell me what's wrong!
DanMystro is offline   Reply With Quote
Old 31/05/2012, 10:36 PM   #8
mati233
Big Clucker
 
Join Date: May 2012
Posts: 169
Reputation: 10
Default Re: error 029: invalid expression, assumed zero

for(new i; i< MAX_PLAYERS; i++)
mati233 is offline   Reply With Quote
Old 31/05/2012, 10:54 PM   #9
DanMystro
Little Clucker
 
Join Date: May 2012
Posts: 5
Reputation: 0
Default Re: error 029: invalid expression, assumed zero

thank you so much
DanMystro is offline   Reply With Quote
Old 31/05/2012, 10:57 PM   #10
DanMystro
Little Clucker
 
Join Date: May 2012
Posts: 5
Reputation: 0
Default Re: error 029: invalid expression, assumed zero

warning 202: number of arguments does not match definition
GetVehicleParamsEx(GetPlayerVehicleID(i),params[0],params[1],params[2],params[3],params[4],params[5],params[6],params[7]);
SetVehicleParamsEx(GetPlayerVehicleID(i),0,params[0],params[1],params[2],params[3],params[4],params[5],params[6],params[7]);

Please help me with this one I'm so close to finishing my script.
DanMystro is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error 029: invalid expression, assumed zero Tass007 Scripting Help 9 04/10/2011 05:53 AM
error 029: invalid expression, assumed zero samtey Help Archive 5 19/07/2011 07:45 PM
error 029: invalid expression, assumed zero Help [K]e[N] Help Archive 0 17/05/2011 03:28 AM
Error 029: invalid expression, assumed zero ExoticBud Help Archive 4 11/05/2011 02:10 AM
[Help] error 029: invalid expression, assumed zero Jimmyhead521 Help Archive 0 24/12/2009 06:38 PM


All times are GMT. The time now is 08:27 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.