Jump to content
  • 0

error 017: undefined symbol "params"


Question

Posted

C:\Users\Marius\Desktop\samp03x_svr_R1-2_win32\gamemodes\grandlarc.pwn(628) : error 017: undefined symbol "params"
C:\Users\Marius\Desktop\samp03x_svr_R1-2_win32\gamemodes\grandlarc.pwn(636) : error 017: undefined symbol "str"
C:\Users\Marius\Desktop\samp03x_svr_R1-2_win32\gamemodes\grandlarc.pwn(636) : error 017: undefined symbol "str"
C:\Users\Marius\Desktop\samp03x_svr_R1-2_win32\gamemodes\grandlarc.pwn(636) : error 029: invalid expression, assumed zero
C:\Users\Marius\Desktop\samp03x_svr_R1-2_win32\gamemodes\grandlarc.pwn(636) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


5 Errors.

[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

Posted

Pai, simplu.

Ai 2 optiuni:

1. stergi modificarile

2. vezi ca ai nistevariabile lipsa (undefined symbol): de exemplu  "params"

Trebuie sa le definesti.... nu stiu exact limbajul ala.... 

[pawn]#include <a_samp>

new Scripter;[/pawn]

Untitled-1copy_zps132d2a00.jpg

Posted

Ca sa stii sscaf-ul sub forma de [pawn]if(sscanf(params se foloseste doar la zcmd.

Tu ai acolo OnPlayerCommandText

Deci trebuie sa pui if(sscanf(cmdtext, "d", time))

Si la cealalta eroare pui la inceputul comenzii new str[256];

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

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.