20.10.2010, 00:49
Hi... I'm making a vehicle system and I don't want to do it for each player again, therefore I used some enums...
like
Examplename[amountofvehicleslots]...
and now I got a little problem...
(that's at OnDialogResponse)...
it should respawn the first vehicle of the player that choose the function... but I get this error at the "SetVehicleToRespawn" line:
I guess because there is no "pname" defined in the PrivateVehs enum...
so how can I make it work?
like
Examplename[amountofvehicleslots]...
and now I got a little problem...
Код:
new pname[MAX_PLAYER_NAME]; GetPlayerName(playerid, pname, sizeof(pname)); if(listitem == 0){ SetVehicleToRespawn(PrivateVehs[name][0]); }
it should respawn the first vehicle of the player that choose the function... but I get this error at the "SetVehicleToRespawn" line:
Код:
error 033: array must be indexed (variable "pname")
so how can I make it work?