23.07.2010, 20:09
Hey Guys!
It's me again, I have a rules textdraw, and when I wanna show it for a player, the server crashes.
Here it is:
What could be the problem?
Nonameman
It's me again, I have a rules textdraw, and when I wanna show it for a player, the server crashes.
Here it is:
pawn Код:
new Text:rules;
pawn Код:
OnGameModeInit()
{
rules = TextDrawCreate(320.0, 100.0, "~n~~b~***~g~Szab~lyzat~b~***~n~~n~~b~1. ~r~Ne~w~ cheatelj/hackelj!~n~~b~2. ~r~Ne~w~ spam-eld a chat-et!~n~~b~3. ~r~Ne~w~ kћrj admin jogot!~n~~b~4. ~r~Ne~w~ Ёlj meg senkit ha nem vagy PvP!~n~~b~5. ~r~Ne~w~ k~romkodj, ~r~ne~w~ sz˘dd a szervert/az adminokat!~n~~n~~p~Az ablak bez~r~s~hoz nyomd meg a ~w~'~r~BAL EGћRGOMBOT~w~'~p~.~n~");
TextDrawLetterSize(rules, 0.3, 1.0);
TextDrawAlignment(rules, 2);
return 1;
}
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(rules, 5, cmdtext);
return 0;
}
pawn Код:
dcmd_rules(playerid, params[])
{
#pragma unused params
TextDrawShowForPlayer(playerid, rules);
return 1;
}
Nonameman