SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 19/06/2013, 07:00 AM   #1
Join Date: Nov 2012
Location: Canada
Posts: 519
Reputation: 45
Default setarmour issue

When you set somebody's armour it calls back as "Blah has set blah's armour to 12435046"
And I can't quite find the issue.

pawn Code:
dcmd_setarmour(playerid, params[])
    new id;
    new amount;
    new string[70];
    if(sscanf(params,"uf",id,amount)) return SendClientMessage(playerid,COLOR_ERROR, "Usage: /setarmour [ID] [AMOUNT]");
    if(!IsPlayerConnected(id)) return SendClientMessage(playerid,COLOR_ERROR,"This player is not connected.");
    format(string,sizeof(string),"{FF0000}[ADMIN] {FFFFFF}%s[%d] has set %s[%d]'s armour to %d.",PlayerName(playerid),playerid,PlayerName(id),id,amount);
    return 1;
itsCody is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unoccupied vehicle sync, boat surfing pausing issue, parachute with vehicle issue, surfing w/ skydiving issue Kar Bug Reports 2 10/06/2013 09:24 AM
[COMPILE ERROR] sethp abd setarmour! NewerthRoleplay Scripting Help 1 02/05/2012 03:09 PM
[help] I HAve An Very Small Issue [not Error] Issue HayZatic Help Archive 1 06/07/2011 04:33 AM
[HElp] /sethealth, /setarmour [Lsgw]LoL Help Archive 1 28/06/2011 12:49 PM
NPC Issue. CrucixTM Help Archive 3 09/10/2010 11:48 AM

All times are GMT. The time now is 11:05 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.