Defining help.
#1

Код:
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]
Reply
#2

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)