14.01.2011, 09:23
Feels like I've been trying to put return 1; everywhere in the function and still no success..
Below I will show where in the script I have tried putting return.
If you look at Raven's roleplay/SAGC script you see their functions don't return anything.
I really need a fix for this, and RealCop, I appreciate your help so far lets see if someone can help me get this working, thanks.
Below I will show where in the script I have tried putting return.
pawn Код:
public ShowStats(playerid,targetid)
{
if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
{
if(gPlayerLogged[targetid])
{
SendClientMessage(playerid,COLOR_FUNNYGREEN,"STATS");
new wstring[128];
new score = PlayerInfo[targetid][pScore];
GetPlayerHealth(targetid,hp);
format(wstring, sizeof(wstring), "Level: %d | Hдlsa: %.1f",score, hp);
SendClientMessage(playerid,COLOR_WHITE, wstring);
//HERE I TRIED RETURN
}
//HERE I TRIED RETURN
}
//HERE I TRIED RETURN
}
I really need a fix for this, and RealCop, I appreciate your help so far lets see if someone can help me get this working, thanks.

