Can someone help me with this?
#1

Hello all
Im trying to make a new FS but every time I load it in to my server and go in game and type a cmd like /help its just says: You are not a admin. If i do login as RCON admin and still types /help it says: You are not in a vehicle.
I did found out that it was this commad in my new FS that's doing it:
pawn Код:
if(strcmp(cmd, "/arentcar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, red, "USAGE: /arentcar [price]");
return 1;
}
new rentprice = strval(tmp);
if (IsPlayerAdmin(playerid))
{
if(IsPlayerInAnyVehicle(playerid))
{
if(rentprice >= 1 && rentprice <=9999)
{
new car = GetPlayerVehicleID(playerid) - 1;
new vehicleid = GetPlayerVehicleID(playerid);
RentCars[car][Price] = rentprice;
new wstring[128];
format(wstring, sizeof(wstring), "You've have now set this %d for rent with the price %d.", vehicleid,rentprice);
SendClientMessage(playerid,red, wstring);
SaveDynamicCars();
}
else
{
SendClientMessage(playerid, red, "Incorrect Price, Price Can Only Be 1-9999.");
}
}
else
{
SendClientMessage(playerid, red, "Your not in a vehicle!");
}
}
else
{
SendClientMessage(playerid, red, "Your not an administrator.");
}
}
return 1;
}
1. Yes my OnPlayerCommandText returns 0 at my FS
2. Yes my OnPlayerCommandText returns 0 at my GM
3. Yes I have search a lot but I could not find anything
4. Yes I all my variables and public's is right
5. No I dont get any errors when I compile the script
Is there a way to fix this?
Reply


Messages In This Thread
Can someone help me with this? - by Fj0rtizFredde - 06.02.2010, 13:52
Re: Can someone help me with this? - by ¤Adas¤ - 06.02.2010, 14:03
Re: Can someone help me with this? - by Fj0rtizFredde - 06.02.2010, 14:11
Re: Can someone help me with this? - by ¤Adas¤ - 06.02.2010, 14:12
Re: Can someone help me with this? - by Fj0rtizFredde - 06.02.2010, 14:13
Re: Can someone help me with this? - by ¤Adas¤ - 06.02.2010, 14:15
Re: Can someone help me with this? - by Fj0rtizFredde - 06.02.2010, 14:16
Re: Can someone help me with this? - by ¤Adas¤ - 06.02.2010, 14:20
Re: Can someone help me with this? - by Fj0rtizFredde - 06.02.2010, 18:03
Re: Can someone help me with this? - by Fj0rtizFredde - 07.02.2010, 11:05

Forum Jump:


Users browsing this thread: 1 Guest(s)