Quote:
Originally Posted by LarzI
Put prints on the bottom in every callback (OnGameModeInit, OnPlayerConnect, OnPlayerRequestClass, OnPlayerRequestSpawn, OnPlayerSpawn etc.) then you'll see which message which doesn't get printed, and then you know that the problem is caused by something after the last message which got printed.
Example:
You put
pawn Код:
print("OnGameModeInit - clear");
for each callback, then if the log says
Код:
OnGameModeInit - clear
OnPlayerConnect - clear
OnPlayerRequestClass - clear
OnPlayerRequestSpawn - clear
Then you know that the problem is caused by what comes after OnPlayerRequestSpawn, which is OnPlayerSpawn.
|
LOL That was a GREAT Idea!
Thanks mate!!!

it was a problem in my OnGameModeInit
I made a IC log so when I write something IG it writes to my IC log....
And can I ask you for one more help
I made command accent and when i someone makes eg. /accent American
it should be writen in userdata and when he writes something, in chat should be like
Mark_Krestic says[American accent]: ......
This is my accent command:
pawn Код:
command(accent, playerid, params[])
{
new accent[128], string[ 128 ];
if (isnull(params))
{
return SendClientMessage(playerid, COLOR_WHITE, "[INFO]: /accent [language]");
}
else
{
if(IsPlayerSpawned( playerid ) )
{
if(strlen(accent) >= 1 && strlen(accent) < 15)
{
format( Player[playerid][Accent], 128, "%s", accent);
format( string, sizeof( string ), "You are now talking in the %s accent!", accent);
SendClientMessage( playerid, COLOR_WHITE, string);
}
else
{
SendClientMessage( playerid, COLOR_WHITE, "I don't think an accent is more than 15 characters, or less than 1." );
}
}
else
{
SendClientMessage( playerid, COLOR_WHITE, "You're not spawned." );
}
}
return true;
}
But when i make that command it says: "I don't think an accent is more than 15 characters, or less than 1." every time....