Search Results
pawn Код: IsPlayerOnAnyVehicle(playerid){  new Float:vehx, Float:vehy, Float:vehz, Float:plyx, Float:plyy, Float:plyz;  GetVehiclePos(v, plyx, plyy, plyz);  for (new v; v < MAX_VEHICLES; v++...
63
If you are using MySQL you could use my weapon functions: EDIT: decided it was too big, moved to http://pastebin.com/f29820450 If you're not using MySQL, then I assume you have some sort of account ...
170
Personally, I would use this: pawn Код: stock strcmpEx(const string1[], const string2[], bool:ignorecase=false, length=cellmax){    if((!strlen(string1) && !strlen(string2))) return 0; ...
206
That's not the issue... I am asking about PAWN error trapping. try and catch don't work, either. Oh, and they MySQL thing: It's probably better just to check if the password contains letters and numb...
78
bump - I really need to know if PAWN can trap errors or not, I can't find much about it...
78
Quote: Originally Posted by SilentHuntR OnPlayerUpdate is returning 0, fix it. Thanks ^^ I remember what happened now =]
114
Hi For some reason, nobody on my server can see anyone else, and while players are at class selection, GetPlayerState is returning 0, when it should be returning 7. See https://sampwiki.blast.hk/wiki...
114
Quote: Originally Posted by Cuecumber Quote: Originally Posted by zozo You can not allocate memory dynamically with Pawn! Sorry, but that's incorrect. Say hello to malloc. ...
226
Quote: Originally Posted by Nubotron You can not allocate memory dynamically with Pawn! Ok, thank you.
226
Quote: Originally Posted by yezizhu new HouseKeyArray[] = samp_mysql_num_rows(); or new const rn = samp_mysql_num_rows(); new HouseKeyArray[rn]; error 008: must be a constant expression...
226
pawn Код: new rn = samp_mysql_num_rows();new HouseKeyArray[rn]; Why can't this be done? And is there a way to do a similar thing?
226
pawn Код: Getsomething(somethingid){  new query[128];    format(query, sizeof(query), "SELECT `something` FROM `something ` WHERE `something` = something LIMIT 1", something + something);    ...
128
Hi. I have a 20000 line script. It uses MySQL. Every now and then, the server crashes. Sometimes when players are online, sometimes not. Sometimes frequently, sometimes not. The script is based arou...
78
OnGameModeInit Код: SetTimer("CheckBrokenCars",1000,true); Код: forward CheckBrokenCars(); public CheckBrokenCars() { for(new i; i<MAX_PLAYERS; i++) { if(IsPlayerConnected(i) &...
226
Hi. I want to do this, and be able to use it as a normal string: pawn Код: Player[playerid][CrimeList][listID][String] So I can do something like this: pawn Код: format(Player[playerid][Cr...
49
Ok, I think i've fixed it now.
62
Код: AddPlayerClass(skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo) I don't want to have to set Float, Float:y, and Float:z, beca...
62
Quote: Originally Posted by =>Sandra<= pawn Code: new number = 5;format(string, sizeof(string), "%02d", number); %02d will result: 05 %03d will result: 005 %06d will result: 00000...
105
Quote: Originally Posted by Dujma Put if the number is < 10 it formates like 0%i ty *duh* :P
105