Jump to content
  • 0

Comanda /setmoney


Question

Posted

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

Posted

mai precis care e linia 1202 si 1196 ?

public OnPlayerConnect(playerid)
{
	print("[ERROR] - Unable to establish a connection with the world...");
	SendRconCommand("exit");
	return 1;
}

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.