Posts: 775
Threads: 78
Joined: Dec 2014
You should use strcat instead of format as it's slower, define this in your script;
PHP код:
#if !defined strcpy
#define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif
then use
PHP код:
strcpy(FacInfo[pInfo[playerid][pFaction]][fLeader], PlayerName(playerid));
Cred:
https://sampforum.blast.hk/showthread.php?tid=608087
Posts: 775
Threads: 78
Joined: Dec 2014
PHP код:
#define overwrite(%0,%1) strcat((%0[0] = EOS, %0), %1)
CMD:makemeleader(playerid) {
overwrite(FacInfo[pInfo[playerid][pFaction]][fLeader], PlayerName(playerid));
return 1;
}