21.03.2015, 14:04
spawn the player, set cam pos -> do ..
new string1[6] = "Hello", string2[6]; format(string2, sizeof(string2), string1);
format(string2, sizeof(string2), "%s", string1);
y_debug.inc(114) : fatal error 100: cannot read from file: "internal\y_funcinc"
native WP_Hash(buffer[], len, const str[]); #include <a_samp> #include <zcmd> #include <sscanf2> #include <explosions> #include <mapandreas> #include <physics> #include <YSI\y_ini>
RadarHud = TextDrawCreate(499.142883, 3.206666, "usebox"); TextDrawLetterSize(RadarHud, 0.000000, 7.458148); TextDrawTextSize(RadarHud, 348.095245, 0.000000); TextDrawAlignment(RadarHud, 1); TextDrawColor(RadarHud, 0); TextDrawUseBox(RadarHud, true); TextDrawBoxColor(RadarHud, 102); TextDrawSetShadow(RadarHud, 0); TextDrawSetOutline(RadarHud, 0); TextDrawFont(RadarHud, 0); RadarHud = TextDrawCreate(369.523864, 5.546667, "LS-PD SPEED RADAR"); TextDrawLetterSize(RadarHud, 0.297618, 1.442133); TextDrawAlignment(RadarHud, 1); TextDrawColor(RadarHud, -1); TextDrawSetShadow(RadarHud, 0); TextDrawSetOutline(RadarHud, 1); TextDrawBackgroundColor(RadarHud, 51); TextDrawFont(RadarHud, 1); TextDrawSetProportional(RadarHud, 1); RadarHud = TextDrawCreate(354.285736, 27.306671, "~n~~r~Speed: kmph"); TextDrawLetterSize(RadarHud, 0.164666, 1.194666); TextDrawAlignment(RadarHud, 1); TextDrawColor(RadarHud, -1); TextDrawSetShadow(RadarHud, 0); TextDrawSetOutline(RadarHud, 1); TextDrawBackgroundColor(RadarHud, 51); TextDrawFont(RadarHud, 1); TextDrawSetProportional(RadarHud, 1); RadarHud = TextDrawCreate(411.047698, 26.880001, "~b~Vehicle Model:"); TextDrawLetterSize(RadarHud, 0.149428, 1.450667); TextDrawAlignment(RadarHud, 1); TextDrawColor(RadarHud, -1); TextDrawSetShadow(RadarHud, -34); TextDrawSetOutline(RadarHud, 0); TextDrawBackgroundColor(RadarHud, 51); TextDrawFont(RadarHud, 1); TextDrawSetProportional(RadarHud, 1);
I know that there is a relation between kicking delay and the kicked player's ping - i mean if i sent a message, and then delayed the kick as the player's ping (in ms). Will the message get displayed and sent correctly?
|
Is there a standard function to put NPCs in Vehicles ? I tried PutPlayerInVehicle, but havent success.
Best regards |
#define CheckIfUpper(%0) (%0 > 64 && %0 < 94)
if (CheckIfUpper ('A'))
printf ("It's upper!");
warning 206: redundant test: constant expression is non-zero
What's wrong here? The code works though.
pawn Код:
Код:
warning 206: redundant test: constant expression is non-zero |
#define CheckIfUpper(%0) (64 < %0 && %0 < 94)
public OnPlayerConnect(playerid)
{
new a = 'A';
if(CheckIfUpper(a)) printf ("It's upper!");
}
new const Float:Array[][][] = {{{// X, Y, Z, A}}};
new rand = random(sizeof(Array[team]));
: error 001: expected token: "]", but found "-identifier-" : warning 215: expression has no effect : error 001: expected token: ";", but found "]" : error 029: invalid expression, assumed zero : fatal error 107: too many error messages on one line |
new rand = random(sizeof(Array[]));
new blabla[MAX_PLAYERS] = {-1, ...};
new blabla[MAX_PLAYERS][MAX_PLAYERS] = {{-1, ...}, ...};
SetPlayerCheckpoint(id, x, y, z, size);
DisablePlayerCheckpoint(i);
SetPlayerCheckpoint(id, x, y, z, newsize);