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:
Code:
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;
}
Code:
[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
This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at http://ift.tt/jcXqJW.
Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting.
Having a problem with /bike command
Aucun commentaire:
Enregistrer un commentaire