Search Results
Returns are used at the end of a piece of code to return whether or not the executed coding was successful or not, you can use this to cut code short such as checking if someone's an admin in a comman...
134
Quote: Originally Posted by tyler12 .. All it was was sending the message in the loop. pawn Код: new str[45], Admin[MAX_PLAYER_NAME]; This was inside the loop, which is creating th...
158
Shouldn't you want to be creating the 2 strings outside the loop? Or it'll be creating the same string every time an admin is detected.. pawn Код: CMD:admins(playerid, params[]){    new bool:Cou...
158
Update all your plugins and includes then re-compile.
94
Quote: Originally Posted by adithegman I think i found the problem.... Код: public OnPlayerDisconnect(playerid, reason) { new string[180], pname[MAX_PLAYER_NAME]; new playerfi...
130
pawn Code: if(!IsAt247(playerid) && !IsAtElecShop(playerid) && !IsAtHardShop(playerid)) //Use && instead of ||    {        SendClientMessageEx(playerid, COLOR_GRAD2, " Â...
96
https://sampwiki.blast.hk/wiki/Control_Structures Код: case 1 .. 5:
64
Код: pInfo[playerid][Faction] = factionid; pInfo[playerid][Leader] = 6; Don't use two "=" when you are assigning a value to it, == is only used when checking to see if the variable is equal to s...
48
Код: CMD:admins(playerid,params[]) { new string[128]; new strtext[1000]; new nname[MAX_PLAYER_NAME]; if(IsPlayerConnected(playerid)) { SendC...
89
pawn Код: SendClientMessage(killerid, COLOR_YELLOW, "Congratulations you killed %s !", playerid); Your (playerid) was in the wrong place, when you use %s, %d for example, just place the vars after...
183
Quote: Originally Posted by Akcent_Voltaj i need help with this cmd keeps saying ""You are not a Car Mechanic"" and i am a car mechanic.. pawn Код: if (PlayerInfo[playerid][pMember]...
151
pawn Код: CMD:blah(playerid, params[]){     new playername[MAX_PLAYER_NAME];     GetPlayerName(playerid, playername, MAX_PLAYER_NAME);     if(strcmp("Magnum", playername, 1)) return SendC...
105
EDIT: Nevermind, I think post above may fix it.
131
pawn Код: PlayerInfo[DrugOffer[playerid]][pPayCheck] += DrugPrice[playerid]; //change thisGivePlayerMoney(DrugOffer[playerid]), DrugPrice[playerid]); //to this
68
pawn Код: if(pInfo[playerid][superadmin] == 0) return SendClientMessage(playerid, COLOR_YELLOW, "You are not in Super Admin Mode."); //had one too many )'s You had one too many )'s at the end of ...
102
Update your include file and recompile. https://sampforum.blast.hk/showthread.php?tid=102865
131
pawn Код: forward ProxDetectorS(Float:radi, playerid, targetid);
153
Post your load account code so we can see? Have you checked the server logs?
132
pawn Код: //OnPlayerConnectnew name[MAX_PLAYER_NAME;GetPlayerName(playerid, name, sizeof(name));if(strfind(name, "_Kingston", true) != -1 && //check if he's in a gang or not, not sure on y...
105