10.10.2010, 15:25
I made one code to park vehicle and despawn at same time.. And now i finished.. the code to spawn it again but im getting one error here is my code to spawn
EDIT: the error line its at "CreateVehicle"
pawn Код:
else if(strcmp(x_v,"get1",true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(Account[playerid][pPcarkey1] == 999 && Account[playerid][pPcarkey2] == 999 && Account[playerid][pPcarkey3] == 999)
{
SendClientMessage(playerid,COLOR_LIGHTRED,"ERROR: You do not own a car!");
return true;
}
new carkey1 = Account[playerid][pPcarkey1];
GetPlayerName(playerid, playername, sizeof(playername));
if(IsPlayerInVehicle(playerid, carkey1))
{
SendClientMessage(playerid,COLOR_LIGHTRED,"ERROR: You are in your car...");
return true;
}
{
CreateVehicle(carkey1, VehicleInfo[carkey1][cLocationx], VehicleInfo[carkey1][cLocationy], VehicleInfo[carkey1][cLocationz]);
TextDrawSetString(Textdrawz[playerid],"~w~Info: Your car its parked at same place where you parked it.");
TextDrawShowForPlayer(playerid,Textdrawz[playerid]);
NoText[playerid]=5;
OnPlayerUpdate(playerid);
return true;
}
}
}
Quote:
ERROR:number of arguments does not match definition |