Wysłany: 2018-12-02, 20:10
szeju
Wiek: 30 Na forum: 6343 dni Posty: 65
Piwa : 327
Witam tak jak w temacie
error 017: undefined symbol "GetPlayerPoolSize"
Kod: forward SecondUpdate();
public SecondUpdate()
{
for(new playerid, j = GetPlayerPoolSize(); playerid <= j; playerid++)
{
if(IsPlayerConnected(playerid))
{
if(Player[playerid][ShowMouse])
{
ShowPlayerMouse(playerid, true);
}
}
}
return 1;
}
warning 214: possibly a "const" array argument was intended: "name"
Kod: stock IsRPName(name[], minname = 3, bool:firstupperthenlower = true) //By Nickk888
{
new count, checknumcount, where, tmpname[24], tmpsname[24];
new len = strlen(name);
for(new i; i < len; i++) {
if(name[i] == '_')
count++,
where = i;
switch(name[i]) {
case 'A'..'Z', 'a'..'z', '_':
checknumcount++;
}
}
if(count != 1 || (where < minname || len < ((where + 1) + minname)) || checknumcount != len)
return 0;
strmid(tmpname, name, 0, where);
strmid(tmpsname, name, where+1, len);
checknumcount = 0;
if(firstupperthenlower) {
switch(tmpname[0]) {
case 'A'..'Z':
checknumcount++;
}
for(new i = 1, j = strlen(tmpname); i < j; i++){
switch(tmpname[i]) {
case 'a'..'z':
checknumcount++;
}
}
switch(tmpsname[0]) {
case 'A'..'Z':
checknumcount++;
}
for(new i = 1, j = strlen(tmpsname); i < j; i++){
switch(tmpsname[i]) {
case 'a'..'z':
checknumcount++;
}
}
if((checknumcount + 1) != len)
return 0;
}
return 1;
}
warning 214: possibly a "const" array argument was intended: "string"
Kod: stock bool:IsStrValid(string[])
{
new num;
new len = strlen(string);
for(new i; i < len; i++)
switch(string[i])
{
case 'A'..'Z':num++;
case 'a'..'z':num++;
case '0'..'9':num++;
}
if(num == len) return true;
else return false;
}
Podpis
piatek.tosiewytnie.pl/i,Piatek-The-Series-s04e02,vid,34221,index.html
Wysłany: 2018-12-03, 10:15
ProBaton
Emeryt GTA
Wiek: 27 Na forum: 3825 dni Posty: 603
Nick w MP: ProBaton
Piwa : 2756
Je?li chodzi o ten b??d error 017: undefined symbol "GetPlayerPoolSize" to polecam pobra? pliki serwerowe 0.3.7 i przerzuci? includy z tej paczki do twojej obecnej paczki pawno.
Serwer odpalasz na jakiej wersji?
Wysłany: 2019-01-04, 18:42
woood
Wiek: 23 Na forum: 2908 dni Posty: 60
Nick w MP: WoooDie
Piwa : 37
1.Podmie? a_samp na najnowszy:
Kod: http://files.sa-mp.com/samp037_svr_R2-1-1_win32.zip
2. Nie jestem pewien, sam nie mia?em takiego problemu. Poczyta?em troch? na forach i spr?buj zamieni?
Kod: stock IsRPName(name[], minname = 3, bool:firstupperthenlower = true)
Na:
Kod: stock IsRPName(const name[], minname = 3, bool:firstupperthenlower = true)
Je?eli to nie dzia?a, przeczytaj temat na:
https://gtao.pl.com/showthread.php?t=659921
3. To samo, spr?buj zamieni?
Kod: stock bool:IsStrValid(string[])
Na:
Kod: stock bool:IsStrValid(const string[])
Tagi: jak :: naprawić
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: