14.07.2016, 17:11
Hey together again,
I have a small problem with my /bike command. It isn't working. So I write this command nothing comes out, nothing in chat, nothing in the console. Look over:
CONSOLE
I don't understand, why nothing comes out. Some minutes ago it worked perfectly.
I have a small problem with my /bike command. It isn't working. So I write this command nothing comes out, nothing in chat, nothing in the console. Look over:
Код:
CMD:bike(playerid, params[])
{
if(pData[playerid][pLevel] < 4 && pData[playerid][pMoney] > GetPlayerMoney(playerid)){
if(IsPlayerInRangeOfPoint(playerid, 15, 1315.7648,-1382.5044,13.7960)){
new Float:x, Float:y, Float:z;
GetPlayerPos(playerid, Float:x, Float:y, Float:z);
CreateVehicle(481, x,y,z, 0, -1, -1, 90000);
SendClientMessage(playerid, COLOR_GOLD, "You have sucessfully rent a bike");
printf("[SERVER]: Bike (ID: 481) created at Spawn");
GivePlayerMoney(playerid, -400);
}else{
SendClientMessage(playerid, COLOR_RED, "You're not near the Bike Rentshop at the Spawn");
}
}
if(pData[playerid][pLevel] > 4 && pData[playerid][pMoney] < GetPlayerMoney(playerid)){
SendClientMessage(playerid, COLOR_RED, "You're higher than level 4 or has less then $400 in your pocket.");
}
return 1;
}
Код:
[join] HAGAKURE has joined the server (0:127.0.0.1) [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike [SERVER] HAGAKURE (ID: 0): /bike


