- 0
Problema comenzi
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
Warr007
Problema intalnita (descriere): Niste erori, nu stiu cum sa le rezolv.
Ero(area / rile) / warning-(ul / urile):C:\Users\Warr007\Desktop\BETA Server SA-MP v0.1\gamemodes\bgd.pwn(33458) : error 021: symbol already defined: "cmd_e"
(33577) : error 029: invalid expression, assumed zero
(33577) : warning 215: expression has no effect
(33577) : error 001: expected token: ";", but found "]"
(33577) : error 029: invalid expression, assumed zero
(33577) : fatal error 107: too many error messages on one line
Liniile de cod / sursa / script-ul(obligatoriu):
La linia aia e : if(pInfo[playerid][Adminlevel] < 5) SendClientMessage(playerid, 0xFFFFFFFF, string);
Este o comanda
CMD:requestevent(playerid, params[])
{
if(activeevent == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}There's already an active event.");
if(requestingevent[playerid] == 1) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}You're already requesting an event, cancel it first.");
new title[50], location[50], description[100], prize, time[50];
if(sscanf(params, "p<|>s[50]s[50]s[50]s[100]d", title, location, time, description, prize)) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Syntax: /requestevent [Title|Location|Time|Description|Prize]");
if(strlen(title) < 1 || strlen(title) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in title.");
if(strlen(location) < 1 || strlen(location) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in location.");
if(strlen(time) < 1 || strlen(time) > 50) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in time.");
if(strlen(description) < 1 || strlen(description) > 100) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid amount of characters in description.");
if(prize < 1 || prize > 5000000) return SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Invalid prize amount.");
new string[300], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
requestingevent[playerid] = 1;
strmid(requestingtitle[playerid], title, 0, strlen(title));
strmid(requestinglocation[playerid], location, 0, strlen(location));
strmid(requestingdescription[playerid], description, 0, strlen(description));
requestingprize[playerid] = prize;
strmid(requestingtime[playerid], time, 0, strlen(time));
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, "-------------------------------------------");
}
}
format(string, sizeof(string), "{FFFF00}Event %d has been requested, details are below.", playerid);
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
format(string, sizeof(string), "{FFFF00}Event: %d Title: %s Location: %s Time: %s", playerid, title, location, time);
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
format(string, sizeof(string), "{FFFF00}Organizer: %s Prize: $%s", name, Comma(prize));
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, string);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
format(string, sizeof(string), "{FFFF00}Description: %s", description);
if(pInfo[playerid][Adminlevel] < 5) SendClientMessage(playerid, 0xFFFFFFFF, string);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
format(string, sizeof(string), "{FFFF00}Use [/acceptevent %d] to accept this event.", playerid);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
SendClientMessage(playerid, 0xFFFFFFFF, "{FFFF00}Your event is pending approval from an admin, please wait.");
if(!IsPlayerAdmin(playerid)) SendClientMessage(playerid, 0xFFFFFFFF, "-------------------------------------------");
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerAdmin(i))
{
SendClientMessage(i, 0xFFFFFFFF, string);
}
}
return 1;
}
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?: Desigur m-am uitat peste script basic, am incercat sa modific cate ceva, dar nu mi-a reusit.
13 answers to this question
Recommended Posts