Quote:
Originally Posted by Y_Less
pawn Code:
if (sscanf(params, "k<vehicle>I(-1)I(-1)", var, col1, col2)) return SendClientMessage(playerid, 0xFF0000FF, "USAGE: /car [vehicle name/id] [Optional: color1] [Optional: color2]"); if(var == -1) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Invalid vehicle name entered.");
|
Using this puts me in the situation where I have to write the full vehicle names like /car Infernus 3 instead of /car Inf 3, and some vehicles can't be spawned because their names consists of more than one word
And now that I test out the /giveweapon command in game, I'm not able to do
"/giveweapon Hannes Sawnoff" to give me a Sawn-off Shotgun, I either have to use
"/giveweapon 0 Sawnoff" or
"/giveweapon Hannes 26", it seems like it can't handle the player name and weapon string at the same time