Defining help. - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Defining help. (
/showthread.php?tid=272879)
Defining help. -
campkz - 30.07.2011
Код:
if(strcmp( Name, ADMIN_PLAYERS)) RemovePlayerFromVehicle(playerid);
I have that but i want to define admin_players
atm it's like
Код:
new ADMIN_PLAYERS = {Chris_Peacock, Dildo_Doz };
That's kind of java like ^ cause i used to code java, but i get a error saying
[quote]Samp.pwn(467) : error 035: argument type mismatch (argument 2)[/qupte]
Re: Defining help. -
JaTochNietDan - 30.07.2011
Well if you're asking how to initialize an array of strings, you could use the following syntax:
pawn Код:
new ADMIN_PLAYERS[][] = {"Chris_Peakcock", "Dildo_Doz"};
I hope that helps, you could also refer to the PAWN manuals over at Compuphase's website.