Search Results
Update your streamer plugin and include. Recompile the script. Run the server
191
Can sscanf (maybe sscanf2) be used to compare strings? Wanted to use this method because strcmp apparently uses a lot more memory
119
So uh, something like this? PHP код: for(new i=0; i<10; i++) {     if(PlayerInfo[id][Inv][i] == 1)     {         //code     } }  Would this code check if the ...
174
Right, that was my fault, should've been 0. How do I check the content of every array if their value is equal to 1?
174
So uh I was trying to check every content of the array if each of them are equal to one, but I'm kinda having troubles in how to shorten it. Here's how far I've gone PHP код: if((PlayerInfo[id...
174
Quote: Originally Posted by Billiam Where Can I get Horizon Roleplay Script (Full and finished) You can't. You just can't. You can't. No, you can't.
657
So I wanted to create a /mute command wherein the admin who uses the command may or may not input a reason as to why he'd mute the player. Here's where I got so far PHP код: CMD:mute(playerid,...
179
So I have a crapload of information in one line. How do you minimize it in order to avoid the Код: error 075: input line too long (after substitutions) PHP код: if(i != 19 || i != 20...
621
Quote: Originally Posted by Shinja PHP код: new textdrawid = -1;  for(new i, j = sizeof Msgs; i<j; i++) {     if(!strfind(Msgs[i][0], msg, true)) continue;   ...
207
Quote: Originally Posted by v1k1nG You can give a try using strfind. PHP код: new string[128];     for(new i = 0; i < sizeof(Msgs); i++)     {         ...
207
So I was planning to create an array for the messages of 4 textdraws PHP код: static const Msgs[][2][50] = //[] is for the id, [2] is to declare a multidimensional array, [50]...
207
Quote: Originally Posted by Ciandlah Maybe create something like this Код: new PlayerText:SHOWINFO[MAX_PLAYERS][MAX_TEXTDRAWS]; Then just generate a Stock for it I guess Код: sto...
131
okay, so my deepest apologies. decided not to be lazy and place all of those in an array. donesies sorry
131
So I have 50 textdraws which I plan to be shown to the player with one command. Thing is that PHP код: CMD:show(playerid, params[]) {     PlayerTextDrawShow(playerid, Textdraw0);    ...
131
Quote: Originally Posted by Shinja Are you sure the variable is working like it suppose to, in that way HealthInfo[id][HealthLevel] might me considered as a string It's an array; used i...
434
Quote: Originally Posted by Shinja Show us how you are defining PlayerInfo and the enum inside it aswell Код: enum hInfo { HealthLevel[10] }; new HealthInfo[MAX_PLAYERS][hInfo];
434
Quote: Originally Posted by Infin1ty Код: for(new i = 0; i < 10; i++) { if(HealthInfo[id][HealthLevel][i] == 3) break; else HealthInfo[id][HealthLevel][i]++, break; } See if th...
434
Quote: Originally Posted by Infin1ty why not just use Код: PlayerInfo[id][Item][i]++; and if u want ur highest upgrade to be '3' then put in a if statement and return 1; once it reach...
434
Oh shoot, forgot to paste that, sorry. Pastebin
434