String. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: String. (
/showthread.php?tid=600521)
String. -
Bruker - 09.02.2016
The string is for all players.
Код HTML:
new stdl[MAX_PLAYERS][50];
Код HTML:
format(stdl[playerid], sizeof(stdl[playerid]), "Your Dialog, %s.", GetPName(playerid));
ERROR:
Код HTML:
error 001: expected token: "]", but found "-identifier-"
warning 215: expression has no effect
error 001: expected token: ";", but found "]"
error 029: invalid expression, assumed zero
Re: String. -
CalvinC - 09.02.2016
You can use this:
Код:
format(stdl[playerid], 50, "Your Dialog, %s.", GetPName(playerid));
Re: String. -
Bruker - 09.02.2016
Ok, thank you.
Re: String. -
Vince - 09.02.2016
Actually use
to get the size of the second dimension (50).