07.10.2017, 14:05
What is the difference between a debian version and a debian static version?
if(RELEASED(KEY_FIRE))
{
GetVehicleModelInfo(GetVehicleModel(vehicleid), VEHICLE_MODEL_INFO_FRONTSEAT, cX, cY, cZ);
GetVehicleRelativePos(vehicleid, dX, dY, dZ, -cX - 0.5, cY, cZ);
if(!IsPlayerInRangeOfPoint(playerid, 1.2, dX, dY, dZ))
return 1;
}
What are the useful and important informations to extract from the profiler? What which columns means?
|
https://www.youtube.com/watch?v=WhZerRzXkTM Help please!
|
for(new i = random_number; i < MAX_HOUSE; i++)
foreach(new i = random_number : Ite_Houses)
or
foreach(new i = random_number : Ite_Houses)
i created chechpoint for the taxi driver, he have 'i' , passenger have 'playerid'
|
public OnPlayerEnterCheckpoint(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,2.0,781.5677,841.8466,5.8482))
{
PlayerInfo[playerid][pCash] += 500;
DisablePlayerCheckpoint(playerid);
SCM(playerid, COLOR_GREEN, "u get 500$");
}
return true;
}
If you're using onplayerentercheckpoint what's that " i" for?
|
PHP код:
|
CMD:test_label(playerid, params[])
{
extract params -> new player:targetid; else return 0;
new Float:x,
Float:y,
Float:z;
GetPlayerPos(targetid, x, y, z);
CreateDynamic3DTextLabel("TEST LABEL123456", 0xFF0000FF, x, y, z + 5.0, 30.0, targetid, _, .testlos = 1, .playerid = playerid);
return 1;
}
Hey. I should misunderstood something about Dynamic 3D Text Label.
I've this code PHP код:
|
can u help me? when i get checkpoint nothing happens
Код:
if(PlayerInfo[i][pJob] == 2 && PlayerInfo[i][TaxiS] == 02) { if(IsTaxi(i) && GetPlayerState(i) == 2 && GetPlayerVehicleID(i) == GetPlayerVehicleID(playerid)) { if(PlayerInfo[playerid][pLevel] == 1) { new stringl[256]; format(stringl,sizeof(stringl),"%s in your taxi.",PlayerInfo[playerid][pName]); SendClientMessage(i,0x0099FFAA, stringl); format(stringl,sizeof(stringl),"you in %s 's taxi.",PlayerInfo[i][pName]); SendClientMessage(playerid,0x0099FFAA, stringl); SetPlayerCheckpoint(i, 781.5677,841.8466,5.8482,5.0); cKar[i] = 1; } else { SCM(playerid, COLOR_RED, "Social taxi only for newbie"); RemovePlayerFromVehicle(playerid); } } } Код:
if(IsPlayerInRangeOfPoint(i,2.0,781.5677,841.8466,5.8482)) { PlayerInfo[i][pCash] += 500; DisablePlayerCheckpoint(i); SCM(i, COLOR_GREEN, "u get 500$"); } return true; } |