- 0
error 017: undefined symbol "params"
-
Similar Content
-
- 1 reply
- 2.000 views
-
-
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
AleX124
[pawn] if (strcmp("/oramaa", cmdtext, true, 5) == 0)
{
new time;
if(sscanf(params, "d", time)) //Linia 628
{
SendClientMessage(playerid, COLOR_RED, "Scrie: {FFFF00}/time <ora 0 - 23>");
return true;
}
if(time < 0)
{
format(str, sizeof(str), "{30a030}[DTG]: {ffffff}Nu poti pune ora mai mica de 0."); //Linia 636
SendClientMessage(playerid, COLOR_RED, str);
return true;
}
if(time > 23)
{
format(str, sizeof(str), "{30a030}[DTG]: {ffffff}Nu poti pune ora mai mare de 23.");
SendClientMessage(playerid, COLOR_RED, str);
return true;
}
GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
format(str, sizeof(str), "{30a030}[DTG]: {B700FF}%s(%i) a schimbat ora la: %d", PlayerName, playerid, time);
SendClientMessage(playerid, COLOR_BLUE, str);
format(str, sizeof(str), "~r~Timp schimbat: ~b~%d", time);
GameTextForPlayer(playerid, str, 3000, 5);
SetWorldTime(time);
return true;
}[/pawn]
3 answers to this question
Recommended Posts