Search Results
Why using "static" in this case? And why using hexadecimal forms?
71,156
A number is odd when (number & 1) returns 1 and it's even when it returns 0. pawn Код: #define iseven(%1) (((%1) & 1) == 0) Then, of course !iseven(n) tells when a number is odd.
71,156
Muito entranho, aqui funciona, mas se for o caso, tente com strmid: pawn Код: if(strfind("[BP]", pname, true) != -1){    new bla[128];    strmid(pname, pname, 4, strlen(pname));    SetPlaye...
200
pawn Код: if(strfind("[BP]", pname, true) != -1){    SetPlayerName(playerid, pname[4]);    new bla[128];    format(bla, 128, "You aren't a admin, so the Auto-Admin changed your name to: %s",...
200
Vocк ta usando isso num webserver com PHP? Me parece que vocк ta colocando isso num arquivo .html dentro do seu computador e tentando abrir sem ao menos ter um servidor HTTP. Se vocк estiver usan...
114
His gamemode's performance is not my business, if he wants performance he should do what he think that would be better. I don't even know how his gamemode looks like. I just gave him the theory.
126
Tira o ponto e vнrgula do final, tenso. pawn Код: if(IsPlayerInRangeOfPoint(playerid,3.0,1312.680786,-2695.799804,5.323690) && IsPlayerInRangeOfPoint(playerid, 3.0,1233.24121094,-2751.83...
331
Yes, I think. You would be sure if you test it.
126
You just have to use this, if you want to set the player whom has the highest score in another team: pawn Код: forward High();public High(){    static last; //it's static because it's like a gl...
126
pawn Код: new highestid = INVALID_PLAYER_ID, highest = -1;for(new i = 0; i < MAX_PLAYERS; ++i){    if(GetPlayerScore(i) > highest)    {        highestid = i;        highest = Get...
126
Coloca isso no OnGameModeInit: pawn Код: EnableStuntBonusForAll(false); E os cassinos jб funcionam normalmente, vocк estб usando algum anti-money-cheat ou dinheiro server-side?
271
WHAT? You're so confusing.
40,152
Quote: Originally Posted by DraKoN I think not accurate because I just used OnPlayerText (playerid, 2%) You used "if". Quote: Originally Posted by DraKoN I was wrong when i...
40,152
Quote: Originally Posted by DraKoN @JatoDie Use Macro pawn Код: #define PlayerExecute(playerid,%2) if(%2[0] == '/')  OnPlayerText(playerid,%2) With this I can't use return Player...
40,152
Se vocкs querem tanto otimizar isto, usa esse: pawn Code: if(dialogid == 33){    RegistrationStep[playerid] = 2;    OnPlayerText(playerid, inputtext);    return 1;}
287
Well, this is only a choice. While you do this example in Pawn: pawn Код: public OnPlayerSpawn(playerid){    new string[256], pname[MAX_PLAYER_NAME];    GetPlayerName(playerid, pname, sizeof...
1,206
Quote: Originally Posted by ****** It's a mix - it depends on the function. Some just call another function, some have all the code there - it depends on what the function does, how compl...
1,206
I script it in Notepad, but I saw many people saying that Notepad++ is very good. EDIT: Code::Blocks has a native syntax highlighting for Squirrel, but I never used it...
1,206
I didn't meant you were implying me for using your plugin too, I'm just thanking you for giving us your useful codes, they really helped me a lot with my learning in hooks, etc. giovanni94m, Azteckin...
1,206