21.09.2012, 20:04
I have this in my script:
Yet the strlen always returns 0. I have tried this:
An example of the printed output would be this:
"Jeff_Wilson - 0", "Jonathan_Walker - 0", "Frank_Morris - 0", all of which are wrong. Can anyone help?
pawn Код:
new string2[128], namelength = strlen(name);
return format(string2, sizeof(string2), "%s - %d", name, namelength), SendClientMessage(playerid, -1, string2);
pawn Код:
new string2[128];
return format(string2, sizeof(string2), "%s - %d", name, strlen(name)), SendClientMessage(playerid, -1, string2);
"Jeff_Wilson - 0", "Jonathan_Walker - 0", "Frank_Morris - 0", all of which are wrong. Can anyone help?