Question regarding %
#5

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
Reply


Messages In This Thread
Question regarding % - by Tachibana - 24.06.2011, 00:00
Re: Question regarding % - by Donya - 24.06.2011, 00:08
Re: Question regarding % - by Tachibana - 24.06.2011, 00:12
Re: Question regarding % - by StreetGT - 24.06.2011, 00:16
Re: Question regarding % - by Tachibana - 24.06.2011, 00:21

Forum Jump:


Users browsing this thread: 6 Guest(s)