Variable returns value 0 ?
#3

Quote:
Originally Posted by ******
Посмотреть сообщение
airplanesimen: That's not how variables work - just because two have the same name doesn't make them the same! It's like two people called "Mark" are not the same person, and if you make a new person and call it Mark, it doesn't instantly become the other two.

park4bmx: That's not how "params" works!
Okay, thanks for reply. I have scripted quite a few codes lately, and i simply didnt notice this before now. So, what could the correct solution be? Could i do it like this:

pawn Код:
new veh;
if(sscanf(params,"u",driver) return ...................
veh = GetPlayerVehicleID(driver);
?
Reply


Messages In This Thread
[Solved Thread] Variable returns value 0 ? - by denNorske - 17.01.2013, 05:56
Re: Variable returns value 0 ? - by park4bmx - 17.01.2013, 06:11
Re: Variable returns value 0 ? - by denNorske - 17.01.2013, 06:51
Re: Variable returns value 0 ? - by LarzI - 17.01.2013, 07:40
Re: Variable returns value 0 ? - by denNorske - 17.01.2013, 07:42

Forum Jump:


Users browsing this thread: 1 Guest(s)