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

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