FeVosFeR Posted June 13, 2018 Report Share Posted June 13, 2018 (edited) Salutare! Am vrut sa fac comanda [/skip] de pe episodul lui Edison Tuts (LINK VIDEO), am reusit sa scriu exact cum a scris si el, doar ca mi-a dat o eroare. Eroare: Spoiler Pe mine nu ma intereseaza a doua eroare, ci prima care impiedica compilarea. LINIA: Spoiler Vreau sa precizez ca folosesc gamemode BigZone. Comanda : Spoiler Edited June 13, 2018 by FeVosFeR Adaugare comanda. Quote Link to comment Share on other sites More sharing options...
0 Vennox Posted June 16, 2018 Report Share Posted June 16, 2018 La 41529 ai uitat de o ')', trebuie sa fie: if(strcmp(cmdtext, "/skip", true) == 0) { } Quote Link to comment Share on other sites More sharing options...
0 Kravyus. Posted June 22, 2018 Report Share Posted June 22, 2018 Comanda e pentru gm burned CMD:skip(playerid, params[]) { if(TutorialActive[playerid] == 0) return SCM(playerid, -1,"Nu poti folosii comanda aceasta!"); new i = playerid, string[256]; TutorialActive[i] = 0; if(PlayerInfo[i][pTut] == 0) { ServerAccounts++; format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]); SendAdminMessage(COLOR_LIGHTRED, string, 1); for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!"); SendClientMessage(i, COLOR_YELLOW, "Tasteaza /bonus pentru a primii cadoul de deschidere."); SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0); ResetPlayerCash(i); GivePlayerCash(i, 1500000); PlayerInfo[i][pAccount] = 2000000; format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='2000000',`Money`='1500000' WHERE `name`='%s'",GetName(i)); mysql_query(SQL, string); TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53; TogglePlayerControllable(i, 1); TogglePlayerSpectating(i, 0); SetCameraBehindPlayer(i); SpawnPlayer(i); PlayerTextDrawHide(i, TutorialTD[0]); PlayerTextDrawHide(i, TutorialTD[1]); } return 1; } public OnPlayerCommandReceived(playerid, cmdtext[]) { if(IsPlayerLogged[playerid] == 0) return 0; if(TutorialActive[playerid] == 1) { if(strcmp(cmdtext, "/skip", true) == 0) {} else return 0; } Quote Link to comment Share on other sites More sharing options...
0 Radutz Posted July 7, 2019 Report Share Posted July 7, 2019 On 6/22/2018 at 1:35 PM, Kravyus. said: Comanda e pentru gm burned CMD:skip(playerid, params[]) { if(TutorialActive[playerid] == 0) return SCM(playerid, -1,"Nu poti folosii comanda aceasta!"); new i = playerid, string[256]; TutorialActive[i] = 0; if(PlayerInfo[i][pTut] == 0) { ServerAccounts++; format(string, sizeof(string), "%s(%d) s-a inregistrat pe server. [#%d]", GetName(i), i, PlayerInfo[i][pSQLID]); SendAdminMessage(COLOR_LIGHTRED, string, 1); for( new j = 0; j <= 50; j++) SendClientMessage(i, COLOR_WHITE, ""); SendClientMessage(i, COLOR_YELLOW, "Te-ai inregistrat cu succes!"); SendClientMessage(i, COLOR_YELLOW, "Tasteaza /bonus pentru a primii cadoul de deschidere."); SetPlayerCheckpointEx(i, 1219.4441,-1813.0352,16.5938, 5.0); ResetPlayerCash(i); GivePlayerCash(i, 1500000); PlayerInfo[i][pAccount] = 2000000; format(string, sizeof(string), "UPDATE users SET `Tutorial`='1',`Bank`='2000000',`Money`='1500000' WHERE `name`='%s'",GetName(i)); mysql_query(SQL, string); TutTime[i] = 0; PlayerInfo[i][pTut] = 1; gOoc[i] = 0; gNews[i] = 0; gFam[i] = 0; CP[i] = 53; TogglePlayerControllable(i, 1); TogglePlayerSpectating(i, 0); SetCameraBehindPlayer(i); SpawnPlayer(i); PlayerTextDrawHide(i, TutorialTD[0]); PlayerTextDrawHide(i, TutorialTD[1]); } return 1; } public OnPlayerCommandReceived(playerid, cmdtext[]) { if(IsPlayerLogged[playerid] == 0) return 0; if(TutorialActive[playerid] == 1) { if(strcmp(cmdtext, "/skip", true) == 0) {} else return 0; } Multumesc chiar cautam pwp Quote Link to comment Share on other sites More sharing options...
Question
FeVosFeR
Salutare! Am vrut sa fac comanda [/skip] de pe episodul lui Edison Tuts (LINK VIDEO), am reusit sa scriu exact cum a scris si el, doar ca mi-a dat o eroare.
Eroare:
Pe mine nu ma intereseaza a doua eroare, ci prima care impiedica compilarea.
LINIA:
Vreau sa precizez ca folosesc gamemode BigZone.
Comanda :
Adaugare comanda.
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.