Search Results
pawn Code: stock randomEx(min, max)    return (random(max - min + 1) + min); Usage: pawn Code: new    randScore = randomEx(25, 50);SetPlayerScore(playerid, GetPlayerScore(playerid) + randScore);
130
Car is awesome, just too many exhausts for my style of liking :3 Maybe, only two (or max four) back exhausts? btw, I can't see the right side of the car (on pic), does it have another side exhaust? I'...
218
Function name: generateRandomString Use: Generates a random string according to length, and stores it at destination. Used commonly for reaction tests filtercsripts. Code: pawn Код: static constÂ...
70,865
Quote: Originally Posted by Caio_Freeze In case you use this other method you said, how do I detect it? Code: Doesn't detect this method (a slow one): <> Crouch, aim, shoot, crouch...
519
Have you set pawn Код: if(pInfo[playerid][Ticketed] == true) to the target when the cop gives him a ticket?
136
Quote: Originally Posted by krytans i did convert from strcmp is that is right ? Код: CMD:pay(playerid, params[]) { new moneys,giveplayerid; if(IsPlayerConnected(playerid))...
177
You returned (ending) the callback after loading nitro, that's why hydraulic didn't add. (OnVehicleSpawn) pawn Код: if(Vehicles[vehicleid][nitro] > 0)    {        AddVehicleComponent(vid,...
81
You can't print an integer with print, but you can with printf pawn Код: printf("PVar Value: %d", pvarval);
69
You need this include http://pastebin.com/Seseuh2x Copy+paste it at pawno, save as 'foreach.inc' in svr_dir/pawno/includes
106
Indent your code, please. pawn Код: CMD: pinfo(playerid, params[]) {    if (IsPlayerConnected(playerid)) {        if (IsSpecing[playerid] == 1) {            if (isnull(params)) return ...
100
pawn Код: new    floor[3];floor[0] = CreateDynamicObject(19378, 2194.98901, 2192.89893, 102.81900,   0.00000, 90.00000, 0.00000); floor[1] = CreateDynamicObject(19378, 2194.98901, 2183.28003, 1...
108
You forgot one thing pawn Код: #include <zcmd>
195
'Textdraws' One does not simply declare them like this: pawn Код: new LoginKutijaDole2; But you need to declare them like this pawn Код: new Text: LoginKutijaDole2;
185
What about /settime [hour] [minute]? This is also a small typo pawn Код: if(day > 7 || day < 1) return SendClientMessage(playerid, -1,"{FF0000}Error:{FFFFFF}Choose a day between 0 and 7"); ...
432
I challenged myself to make an anti c-bug system, and I came up with this script. It detects these C-Bug method(s): <> Aim, shoot, release aim + crouch [popular method] <> While h...
519
First, flyjobrunning=500 upon mission completing doesn't make any sense. Second, flyjobrunning should be a per-player variable. You are using it as a global variable. Third, I can spam /startmission. ...
192
Can you post the function "GetDistanceBetweenPlayers"?
154
Wiki is always your friend. Quote: Using -1 as dialog ID will automatically close all open dialog pawn Код: stock HidePlayerDialog( playerid )    return ShowPlayerDialog( pl...
70
Wrong usage Why do you even loop? Use it like pawn Код: new    x = GetClosestPlayer( playerid, 5.0 );if ( id != -1 ) // ID is valid{    // Rest of code}
147
I am sorry for bumping, but any feedbacks, please?
173