29.01.2012, 19:12
Please tell me why this doesnt work
These are my error codes:
I get 3 of them.
This is what the errors are on SetVehicleNumberPlate(Player[playerid][CarLinkID], plate);
PHP код:
command(setplate, playerid, params[])
{
new plate[126], vehslot;
if(sscanf(params, "ii", plate, vehslot))
{
SendClientMessage(playerid, WHITE, "SYNTAX: /setplate [Plate Name] [Car Slot]");
}
else
{
switch(vehslot)
{
case 1:
{
//format(string, sizeof(string), "%s", plate);
Player[playerid][CarPlate] = plate;
SetVehicleNumberPlate(Player[playerid][CarLinkID], plate);
}
case 2:
{
//format(string, sizeof(string), "%s", plate);
Player[playerid][CarPlate2] = plate;
SetVehicleNumberPlate(Player[playerid][Car2LinkID], plate);
}
case 3:
{
//format(string, sizeof(string), "%s", plate);
Player[playerid][CarPlate3] = plate;
SetVehicleNumberPlate(Player[playerid][Car3LinkID], plate);
}
}
}
return 1;
}
PHP код:
error 006: must be assigned to an array
This is what the errors are on SetVehicleNumberPlate(Player[playerid][CarLinkID], plate);