16.06.2012, 13:33
Please do some research first before creating a tutorial. This sets a bad example for others.
Evidently, the player that executes the command is connected. This piece of code dates back to SA-MP 0.1b where a player could still execute commands after being kicked. This was fixed. Still people are blindly copying this (GodFather ...) without the slightest clue as to why.
The maximum chat output is 128 characters. Why use a buffer twice that length?
Know when to use switches.
Oh, And Don't Type Every Word With A Capital Letter, Because That Is So Annoying To Read.
pawn Код:
if(IsPlayerConnected(playerid))
pawn Код:
new string[256];
pawn Код:
else if(PlayerInfo[i][pAdmin] == 2)
Oh, And Don't Type Every Word With A Capital Letter, Because That Is So Annoying To Read.