View Single Post
Old 11/03/2011, 10:34 AM   #80
Zh3r0
High-roller
 
Join Date: Mar 2008
Posts: 4,512
Reputation: 398
Default Re: Y_Ini - Let's do it!

Quote:
Originally Posted by Finn View Post
Sorry, I forgot how INI_Int worked, do like ****** said and use strval instead.

pawn Code:
format(string, sizeof(string), "Weapon_%d", w);
if(!strcmp(string, name, true)) PlayerInfo[playerid][Weapons][w] = strval(value);

I would use that my old code, but I'd have the script give the weapons to the player when he/she spawns, not in the loading callback.

I'm not sure if you can give weapons before player is spawned anyway.
But he uses it when he logins, so
__________________
Zh3r0 is offline