Pomoc oko PawnPlus

Započeo rizla, Jun 22, 2020, 11:07:08 PRE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): Citam o dinamickim stringovima sa pawnplus pluginom, ali mi objasnjenja nisu jasna https://github.com/IllidanS4/PawnPlus/wiki/Examples#global-vs-local-strings, nikad nisam radio sa pawnplus i testirajuci iz objasnjenog , dobijam greske

C:\Users\dsubo\Desktop\SAMP Server\gamemodes\bare.pwn(27) : error 029: invalid expression, assumed zero
C:\Users\dsubo\Desktop\SAMP Server\gamemodes\bare.pwn(27) : error 033: array must be indexed (variable "-unknown-")
C:\Users\dsubo\Desktop\SAMP Server\gamemodes\bare.pwn(27) : error 033: array must be indexed (variable "-unknown-")
C:\Users\dsubo\Desktop\SAMP Server\gamemodes\bare.pwn(27) : fatal error 107: too many error messages on one line

Deo skripte: [pawn]
stock String:GetPlayerNameStr(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    return str_new(name);
}

public OnPlayerConnect(playerid)
{
    new String:name = GetPlayerNameStr(playerid);
    new String:msg = @("Player ")+name+@(" (")+str_val(playerid)+@(") has joined the server."); //linija 27
   
    SendClientMessageToAllStr(-1, msg);
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]Vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike