07.06.2009, 17:22
uhmm,Guys.
In my Gamemode,Well its not My GM.
I just downloaded,I hope it would be mine but i dont know how,and everytime i ask here,You all are negative.
And most of you posting in my topic just to get higher rank.
Well I hope there is still a good people who can help me.
In my server,When someone Wanna Drive a car,He must buy it..Not some cars like this.
All the cars must be bought to be droven.
And the new guys cant just keep walking,and they cannot buy car because it expensive for them.
So I tried to delete it from the script,When i deleted it started to get me warning and errors 26 errors -.-
I need someone to tell me how i can just REMOVE this system.
Because Its so annoying the my friends just log out from the server just for this reason.
I need your help.
Here is the code:
{
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"~w~Vehicle: %s~n~Price: ~g~%d~n~~w~/v buy to buy this vehicle~n~~r~/exit ~w~to exit this vehicle",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
GameTextForPlayer(playerid,string,5000,5);
}
if(CarInfo[newcar][cOwned]==1)
{
format(string,sizeof(string),"Vehicle registered to %s",CarInfo[newcar][cOwner]);
SendClientMessage(playerid, COLOR_BLUE, string);
/*if(keycar != vehicle)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}*/
if(PlayerInfo[playerid][pPcarkey] == vehicle) { }
else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }
else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }
else
{
if(PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You can drive this car because you are admin on duty !");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}
}
}
}
gLastCar[playerid] = newcar;
gLastDriver[newcar] = playerid;
}
Before i try to remove this lines i had no warnings and no errors.
After I deleted this,26 errors -.-,And that does not include the warnings.
I hope someone tell me what should i do.
Oh and one more question,Why in my server the Rentcars,when someone try to rent them it keep telling : Out of Stock or something like that,I tried to delete this either i got errors.
Lol my script is cool but this couple things are making it ugly!!
In my Gamemode,Well its not My GM.
I just downloaded,I hope it would be mine but i dont know how,and everytime i ask here,You all are negative.
And most of you posting in my topic just to get higher rank.
Well I hope there is still a good people who can help me.
In my server,When someone Wanna Drive a car,He must buy it..Not some cars like this.
All the cars must be bought to be droven.
And the new guys cant just keep walking,and they cannot buy car because it expensive for them.
So I tried to delete it from the script,When i deleted it started to get me warning and errors 26 errors -.-
I need someone to tell me how i can just REMOVE this system.
Because Its so annoying the my friends just log out from the server just for this reason.
I need your help.
Here is the code:
{
TogglePlayerControllable(playerid, 0);
format(string,sizeof(string),"~w~Vehicle: %s~n~Price: ~g~%d~n~~w~/v buy to buy this vehicle~n~~r~/exit ~w~to exit this vehicle",CarInfo[newcar][cDescription],CarInfo[newcar][cValue]);
GameTextForPlayer(playerid,string,5000,5);
}
if(CarInfo[newcar][cOwned]==1)
{
format(string,sizeof(string),"Vehicle registered to %s",CarInfo[newcar][cOwner]);
SendClientMessage(playerid, COLOR_BLUE, string);
/*if(keycar != vehicle)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}*/
if(PlayerInfo[playerid][pPcarkey] == vehicle) { }
else if(PlayerInfo[playerid][pPcarkey2] == vehicle) { }
else if(PlayerInfo[playerid][pPcarkey3] == vehicle) { }
else
{
if(PlayerInfo[playerid][pAdmin] >= 1337 && AdminDuty[playerid] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " You can drive this car because you are admin on duty !");
}
else
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GREY, "You don't have a key of this vehicle");
}
}
}
}
gLastCar[playerid] = newcar;
gLastDriver[newcar] = playerid;
}
Before i try to remove this lines i had no warnings and no errors.
After I deleted this,26 errors -.-,And that does not include the warnings.
I hope someone tell me what should i do.
Oh and one more question,Why in my server the Rentcars,when someone try to rent them it keep telling : Out of Stock or something like that,I tried to delete this either i got errors.
Lol my script is cool but this couple things are making it ugly!!