SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 13/07/2018, 05:32 PM   #31
Florin48
Huge Clucker
 
Join Date: Nov 2015
Location: Romania
Posts: 228
Reputation: 4
Default Re: /givemoney and /setmoney

Quote:
Originally Posted by Jaua10 View Post
HTML Code:
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(1903) : error 017: undefined symbol "giveplayerid"
C:\Users\Jaua\Downloads\samp037_svr_R2-1-1_win32\gamemodes\baserp.pwn(1904) : error 017: undefined symbol "giveplayerid"
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
PHP Code:
    if(sscanf(params"ui"giveplayeridmoney)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /setmoney [PlayerID / PartOfName] [Amount]");
    if(
IsPlayerConnected(giveplayerid)) 

PHP Code:
CMD:setmoney(playeridparams[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 4)
{
    new 
money;
    new 
string[128], string2[128], giveplayerid;
    if(
sscanf(params"ui"giveplayeridmoney)) return SendClientMessage(playeridCOLOR_WHITE"USAGE: /setmoney [PlayerID / PartOfName] [Amount]");
    if(
IsPlayerConnected(giveplayerid))
    {
        
ResetPlayerMoney(giveplayerid);
        
GivePlayerMoney(giveplayeridmoney);
        
format(stringsizeof(string), "You have set %s's cash to an amount of $%d",GetName(giveplayerid),money);
        
SendClientMessage(playeridCOLOR_SUCCESSstring);
        
format(string2 ,sizeof(string2),"Admin Notification: Administrator %s has set your cash amount to $%d"GetName(giveplayerid), money);
         
SendClientMessage(playeridCOLOR_SUCCESSstring2);
    }
}
    return 
1;

Florin48 is offline   Reply With Quote
Old 13/07/2018, 05:56 PM   #32
Jaua10
Huge Clucker
 
Join Date: Apr 2011
Location: Venezuela
Posts: 330
Reputation: 13
Default Re: /givemoney and /setmoney

thanks
Jaua10 is offline   Reply With Quote
Reply

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
Strange bug in /setmoney command. ricardo178 Scripting Help 9 26/07/2017 11:09 PM
[Ajuda] Comando /setmoney GustavinCTN Português/Portuguese 3 29/06/2013 01:15 PM
Need Help with /setmoney ZCMD darkvsoul36 Scripting Help 2 02/12/2012 06:03 AM
Admin /setmoney steven_italy Help Archive 7 07/06/2009 09:37 PM
/money or /setmoney doesn't work...need help Tobii Help Archive 4 21/05/2009 10:22 AM


All times are GMT. The time now is 03:22 PM.


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