Quote:
Originally Posted by Colossus_
%s = strings(letters and numbers)
%i / %d = integeras(numbers)
%f = floats(health/positions)
Learn sscanf2 and it will all make sence.
Ill finish that line..
pawn Код:
new str[128], aName[64]; //new variables to format the string and get the name from the playerid.. GetPlayerName(playerid,aName,sizeof(aName));//get the name from playerid.. format(str, sizeof(str), "All unccupied vehicles have been respawned by %s ", aName); //newly added (your line) //format the string.. SendClientMessage(playerid,0x0,str);//and send the playerid the formatted message with black(0x0)colour text.
You can show there id like so
pawn Код:
format(str, sizeof(str), "All unccupied vehicles have been respawned by %s [%d]", aName, playerid); //newly added (your line)
there name is a string..
and there id is a number(integera)..
Good to see you using zcmd even though your asking these questions.
|
Thanks to you three lol
and as well Colossus_ I have started scripting 1 week ago and I did not want to play around with old crappy cmds so people recommended me zcmd and it is easier than the older ones and faster tho Im sorry for my lack of knowledge about it lol it happens