- 0
Comanda /setmoney
-
Similar Content
-
- 2 replies
- 2.003 views
-
- 1 answer
- 449 views
-
- 2 answers
- 1.044 views
-
Am o problema cu un battlepass,de ce nu merge comanda /misiuni cand o scriu,tin sa precizez ca script-ul mi l-a facut chatgpt
By cbnmihaita,
- 2 answers
- 859 views
-
- 3 answers
- 1.380 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.

Question
Dan_13
Salut am un server de trucking si jucatorii imi cer bani si am decis sa pun comanda /setmoney adica le setez baniii,daca nu am cmd asta tre sami dau mie bani apoi lor si imi ia mult timp deci am comanda dar imi da niste eroori.P.S:comanda nu e facuta de mine e luata din alt gamemode daca are cnv comanda pt trucking sa mio dea sau sa ma ajute!!
[pawn]COMMAND:setmoney( playerid,params[])
{
if ( GetPVarInt( playerid, "Level" ) < 1 )
return SendClientMessage( playerid, -1, "You must be an "#Level1" to use this command");
if ( sscanf( params, "ui", params[ 0 ], params[ 1 ] ) )
return SendClientMessage( playerid, -1, ""COL_LIGHTBLUE"Usage:{FFFFFF} /setmoney <id/name> <money> ");
if ( !IsPlayerConnected( params[ 0 ] ) )
return SendClientMessage( playerid, -1, ""COL_RED"Player is not connected");
if (GetPVarInt( playerid, "Level" ) < GetPVarInt( params[ 0 ], "Level" ) )
return SendClientMessage( playerid, -1, "You are not allowed to use this command on this admin."),SendClientMessage( playerid, -1, "REASON: Player is higher in grade than you.");
ResetPlayerMoney( params[ 0 ] );
GivePlayerMoney( params[ 0 ], params[ 1 ] );
new String[ 245 ];
format( String, sizeof String, "You gave "COL_LIGHTBLUE"%s{FFFFFF} "COL_GREEN"$%d{FFFFFF} moneys.", pName( params[ 0 ] ),params[ 1 ] );
SendClientMessage( playerid, -1, String );
format( String, sizeof String, ""COL_LIGHTBLUE"%s( %s ){FFFFFF} set your cash to "COL_GREEN"$%d",pName( playerid ), GetPlayerLevelName( playerid ), params[ 1 ] );
SendClientMessage( params[ 0 ], -1, String );
return 1;
}[/pawn]
EROORI:
[pawn]C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1196) : error 001: expected token: "-identifier-", but found "["
C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1202) : error 029: invalid expression, assumed zero
C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1202) : warning 215: expression has no effect
C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1202) : error 001: expected token: ";", but found ")"
C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1202) : error 029: invalid expression, assumed zero
C:\Users\Àäìèíèñòðàòîð\Desktop\samp03\pawno\include\PPC_Dialogs.inc(1202) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
5 Errors.
[/pawn]
MS.+1
1 answer to this question
Recommended Posts