#1

Alright i want to understand some variables, I am using strcmp, I am scripting a DM server and i want to know how i can make it so it says "%s Just Got Dropped" but i never defined %s.

So what do i type for new string[] or whatever?
Reply
#2

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
 
    format(string, sizeof(string), "%s got dropped.", name);
    // whatever u want
     SendClientMessageToAll(-1, string);

   // ....
}
Reply
#3

https://sampwiki.blast.hk/wiki/Format
Reply
#4

Quote:
Originally Posted by Trucido
Посмотреть сообщение
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, name, sizeof(name));
 
    format(string, sizeof(string), "%s got dropped.", name);
    // whatever u want
     SendClientMessageToAll(-1, string);

   // ....
}
Thank you.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)