Search Results
The command works fine but server logs warning:
Код:
[21:41:59] sscanf warning: No default value found.
[21:41:59] sscanf warning: Unknown format specifier '[', skipping.
[21:41:59] sscanf warnin...
74
Will this work?
pawn Код:
CMD:aj(playerid,params[]){ new target, time, reason; if(sscanf(params,"uiS(string)[128]",target,money,reason)) { ...
68
ok ill do it this way
pawn Код:
CMD:setmoney(playerid,params[]){ new target, money; if(sscanf(params,"ui",target,money)) { return SendClientMessage(...
68
wow this is class:
pawn Код:
CMD:setmoney(playerid,params[]){ new target, money; if(sscanf(params,"ui",target,money)) { return SendClientMessage(pla...
68
can i not do it with this?
68
How can change this so insted of /command ID TIME
it works as /command ID TIME REASON
pawn Код:
if(strcmp(cmd, "/aj", true) == 0) { if(IsPlayerConnected(playerid)) { ...
68
Thx, but now the fuel goes to like 139218321
56
When you enter the car the fuel is 100, but 5s after you start the engine it goes down to 0 insted of [98/99]
//gamemodeini
pawn Код:
SetTimer("GasUpdate", 5000, 1);
//function
pawn Код:
pub...
56
I have
Przebieg[i] += 0.05
Gas[i] -= 0.2
and im using a textdraw to show this
new stringPRZEBIEG[128];
format(stringPRZEBIEG,sizeof(stringPRZEBIEG),"%d km",Przebieg[vehicle]);
Textdraw6[playerid] =...
19
Ive been on wiki KEY_ page but Idk which one is for right mouse button while in car. I tried the AIM one (12 but that works when pressing spacebar in car. Which one is it for RMB then?
33
No, thats not what I meant. Basically I create one object ID:19450, I click save, and that object is in the file 500 times(19450,1,2,3,4,5,6) and the other 500 times its 0,0,0,0,0,0,0.
It should just...
30
Yep done but now when I save one object it creates like 34kb file with about 500 objects:
take a look where I'm at now:
pawn Код:
enum ObInfo{ ModelID, Float:oX, Float:oY, Fl...
30
well Ill give you code for mine if I get it working. Basically the way mine works is /object [id] and then you use the new samp controls, so you move the object with mouse. Then click the save icon or...
25
pawn Код:
enum ObInfo{ ModelID, Float:oX, Float:oY, Float:oZ, Float:orX, Float:orY, Float:orZ,};new ObiektInfo[7][ObInfo];
30
Basically I want objects to save to file, and then load from file, but for some reason it only saves last 7 objects.
pawn Код:
if(strcmp(cmd, "/obiekt", true) == 0) { tmp = strtok...
30
No man, I made the right question, Viniborn helped me enough, it works. Thx.
23
I have 50 cars Car[0], Car[1] and so on till Car[49]
how can I make
pawn Код:
new vehicleid = /* Car[0] - Car[49] without listiing all of them 1 by 1*/
23
Ah right. Have you got any ideas how when someone enters a vehicle that doesnt belong to him, it allows him to stay but not to drive. I dont want to use TogglePlayerControllAble as it freezes your cam...
23
is there a way to set vehicle params for player, but not SetVehicleParamsForPlayer, because I want to set the engine to off if you enter someones car, but that person can still hear the engine running...
23
I've made an object editor, you can add object but it doesnt load them, also Im not sure if I done the saving by icon click correct.
TOP
pawn Код:
#define MAX_OBIEKTOW 1000forward LoadObiekty();f...
21