Errors Script[OnPlayerText]
#1

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
Reply
#2

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

kthanksbye
Reply
#3

Line 134 from OnPlayerText?
Reply
#4

Obviously, yes.

Paste some code around lines 130-136.
Reply
#5

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

130-136 LINES
Reply
#6

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.
Reply
#7

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")))
{
Reply
#8

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

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")))
        {
Reply
#10

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")))
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)