25.01.2013, 13:49
(
Last edited by dugi; 25/01/2013 at 05:52 PM.
)
Quote:
is it like 150-200(don't remember) the max cells that function can take.. moreover |
Quote:
it doesn't even give you some kind of warning, or anything related to this matter. |
pawn Code:
if(strlen(text) > 128)
{
SendClientMessage(playerid, -1, "ERROR: Can't send a message longer than 128 characters.");
return true;
}
Anyway.. try to split player message on two and send in the new line a second part of the message.
Quote:
0501- "set player can do drive by" - TogglePlayerDriveby(player handle, int) |
pawn Code:
new bool: TogDB[MAX_PLAYERS];
stock TogglePlayerDriveby(playerid, bool: set)
{
if(set)TogDB[playerid] = true;
else TogDB[playerid] = false;
return set;
}
public OnPlayerStateChange(playerid, newstate, oldstate)
{
if(newstate == PLAYER_STATE_DRIVER)
{
if(TogDB[playerid])SetPlayerArmedWeapon(playerid, 0);
else SetPlayerArmedWeapon(playerid, GetPlayerWeapon(playerid));
}
return true;
}