27.10.2012, 14:43
Your welcome.
EDIT:
Hmm, I noticed this:
It actually should be:
Why did I change %s to %d?
Because "Date" is an integer not a string, remember that an Integer is a set of number(s).
%s = String.
%d = Integer.
%i = Integer.
%f = Float.
Floats are like this: "634.423". You can use them with "new Float: x" for example.
"new Float: x, Float: y, Float: z;"
"GetPlayerPos(playerid, x, y ,z);"
"new string[55];"
"format(string,sizeof(string), "Pos X : %f , Pos Y: %f , Pos Z: %f ", x, y, z);
"SendClientMessage(playerid, -1, string);"
"return 1;"
I hope you got it.
EDIT:
Hmm, I noticed this:
PHP код:
%d/%d/%s",reason,pName2,Month, Date, YEAR_string);
PHP код:
%d/%d/%d",reason,pName2,Month, Date, YEAR_string);
Because "Date" is an integer not a string, remember that an Integer is a set of number(s).
%s = String.
%d = Integer.
%i = Integer.
%f = Float.
Floats are like this: "634.423". You can use them with "new Float: x" for example.
"new Float: x, Float: y, Float: z;"
"GetPlayerPos(playerid, x, y ,z);"
"new string[55];"
"format(string,sizeof(string), "Pos X : %f , Pos Y: %f , Pos Z: %f ", x, y, z);
"SendClientMessage(playerid, -1, string);"
"return 1;"
I hope you got it.