O_o
Thanks a very lot!
+Karma for you!
Just some more things to master this plugin:
- If i write %s this is replaced with a clients name, can i
make something like %m to get replaced with users money?
- How do i make a 2nd column in the menu, where i can list prices?
- if i get the above 2 working i would love to know more about nVault
edit:
Code:
case 0:
{
if(get_cvar_num("g_money")>8)
{
if(get_user_ammo(id, weapon_357, 0, 36)
{
client_print(id,print_chat,"[SC BUY AMMO] Your 357 Ammo Capacity is full! (36)")
}
else
{
give_item(id,"ammo_357")
g_money[id] -= 9
client_print(id,print_chat,"[SC BUY AMMO] You bought six Rounds for the 357! (-$9)")
}
}
else
{
if(get_user_ammo(id, weapon_357, 0, 36)
{
client_print(id,print_chat,"[SC BUY AMMO] You do not have enough Money and your 357 Ammo Capacity is full! ($9) (36)")
}
else
{
client_print(id,print_chat,"[SC BUY AMMO] You do not have enough Money to buy six Rounds for the 357! ($9)")
}
}
return PLUGIN_HANDLED
}
undefined symbol "weapon_357"
Now this one is very weird, as weapon_357 is, indeed, known as weapon_357.
I guess I used this function in a wrong way, or i need to "#include" something.