CMD:giveall(playerid, params[]) { new value; if(PlayerInfo[playerid][pPadmin] == 0) return SendClientMessage( playerid, -1, "Tu ne pagrindinis administratorius!" ); if(sscanf(params, "d", value) != 0) SendClientMessage(playerid, 0xFFFFFFFF, "Naudojimas /giveall [kiek]"); return 1; for(new i; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { GivePlayerMoney(i, value); } } return 1; }
CMD:giveall(playerid, params[])
{
new value;
if(PlayerInfo[playerid][pPadmin] == 0) return SendClientMessage( playerid, -1, "Tu ne pagrindinis administratorius!" );
if(sscanf(params, "d", value) != 0)return SendClientMessage(playerid, 0xFFFFFFFF, "Naudojimas /giveall [kiek]"); return 1;
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GivePlayerMoney(i, value);
}
}
return 1;
}
CMD:giveall(playerid, params[])
{
new value;
if(PlayerInfo[playerid][pPadmin] == 0) return SendClientMessage( playerid, -1, "Tu ne pagrindinis administratorius!" );
if(sscanf(params, "d", value) != 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Naudojimas /giveall [kiek]");
for(new i; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GivePlayerMoney(i, value);
}
}
return 1;
}
Actually:
pawn Код:
One of your problems was the indentation too |