SA-MP Forums Archive
Errors Script[OnPlayerText] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Errors Script[OnPlayerText] (/showthread.php?tid=445087)



Errors Script[OnPlayerText] - munsee - 19.06.2013

I've translated all files in pawno/include and then I went in and I opened the gamemode gamemode with pawno then I came to have the server compile translated and I got these errors:
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(134) : error 037: invalid string (possibly non-terminated string)
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(134) : warning 215: expression has no effect
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(134) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(134) : error 017: undefined symbol "este"
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(134) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.

If there is need of something back with the EDIT, I hope you can help me, THANKS


Re: Errors Script[OnGameText] - Kindred - 19.06.2013

Please use common sense and provide us with some code so we can help you.

kthanksbye


Re: Errors Script[OnPlayerText] - munsee - 19.06.2013

Line 134 from OnPlayerText?


Re: Errors Script[OnPlayerText] - Kindred - 19.06.2013

Obviously, yes.

Paste some code around lines 130-136.


Re: Errors Script[OnPlayerText] - munsee - 19.06.2013

return 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "ERROR: 2 este deja folosit);
return 0;
}

130-136 LINES


Re: Errors Script[OnPlayerText] - Kindred - 19.06.2013

Wow, very simple.

pawn Код:
//Change this
SendClientMessage(playerid, COLOR_GREY, "ERROR: 2 este deja folosit);
pawn Код:
//To this

SendClientMessage(playerid, COLOR_GREY, "ERROR: 2 este deja folosit");
You forgot a quotation mark.


Re: Errors Script[OnPlayerText] - munsee - 19.06.2013

WORK,Thanks

Now i have this

C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(989) : error 037: invalid string (possibly non-terminated string)
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(989) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(989) : error 029: invalid expression, assumed zero
C:\Users\Vlad\Desktop\Server ROLEPLAY\pawno\include\/IBP/Publics/OnPlayerText.pwn(989) : fatal error 107: too many error messages on one line

LINE HERE: 986-999

return 0;
}
else if ((strcmp("non emergency", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("non emergency")))
{


Re: Errors Script[OnPlayerText] - Sulps - 19.06.2013

Paste more Code Around Like
980 to 999
And please use [PAWN] tags


Re: Errors Script[OnPlayerText] - munsee - 19.06.2013

pawn Код:
else if ((strcmp("paramedic", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("paramedici")))
        {
            format(string, sizeof(string), "%s spune (cellphone): %s", GetPlayerNameEx(playerid), text);
            ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SendClientMessage(playerid, COLOR_ALLDEPT, "EMERGENCY: Fac conexiunea cu dispeceratul,asteapta.");
            Mobile[playerid] = 914;
            SendClientMessage(playerid, COLOR_ALLDEPT, "LSEMS Dispecerat: Salut,Unde va aflati?");
            return 0;
        }
        else if ((strcmp("both", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("ambele)))
        {
            format(string, sizeof(string), "
%s spune (cellphone): %s", GetPlayerNameEx(playerid), text);
            ProxDetector(15.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);
            SendClientMessage(playerid, COLOR_ALLDEPT, "
EMERGENCY: Fac legatura cu dispeceratul,te rugam sa astepti.");
            Mobile[playerid] = 916;
            SendClientMessage(playerid, COLOR_LIGHTRED, "
EMERGENCY: Salut,Unde va aflati?.");
            return 0;
        }
        else if ((strcmp("
non emergency", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("non emergency")))
        {



Re: Errors Script[OnPlayerText] - Sulps - 19.06.2013

Change That
pawn Код:
else if ((strcmp("both", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("ambele)))
to
pawn Код:
else if ((strcmp("both", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("ambele")))