SLRPG: Errors in /ah en /vh.
Featured Replies
Recent actief 0
- Er zijn hier geen geregistreerde gebruikers aanwezig.
Een betere weg om onze GTA community te volgen. Leer meer.
Een volledig scherm app op het beginscherm inclusief notificaties, badges en meer.
Goedemorgen,
Ik ben bezig om SL:RPG (betaald) te editten. Sinds een tijdje werkt /ac (adminchat) en /vc (vipchat | zelf toegevoegd) niet. Er komt een error: "invalid expression, assumed zero" bij /ah en /vh.
/ac
if(strcmp(cmd, "/ac", true) == 0 || strcmp(cmd, "/achat", true) == 0 || strcmp(cmd, "/adminchat", true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /ac, /achat or /adminchat [text]"); return 1; } format(string, sizeof(string), "Admin %s(%d): %s", PlayerName[playerid], playerid, result); if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pAdmin] >= 101 || PlayerInfo[playerid][pVip] >= 1) { SendReportMessage(COLOR_YELLOW, string, 101); } else { SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command."); } return 1; }/vc
if(strcmp(cmd, "/vc", true) == 0 || strcmp(cmd, "/vchat", true) == 0 || strcmp(cmd, "/vipchat", true) == 0) { new length = strlen(cmdtext); while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; } new offset = idx; new result[64]; while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; } result[idx - offset] = EOS; if(!strlen(result)) { SendClientMessage(playerid, COLOR_GREY, "USAGE: /vc, /vipchat or /vchat [text]"); return 1; } format(string, sizeof(string), "VIP %s(%d): %s", PlayerName[playerid], playerid, result); if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pVip] == 1) { SendReportMessage(COLOR_YELLOW, string, 101); } else { SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use this command."); } return 1; }Ik zou niet weten wat hier fout aan is.
Mvg,
Del