Jump to content
  • 0

Problema Skin


Exaton

Question

Salut cum pot rezolva aceasta eroare cand? Warning: SetPlayerSkin 250 isn't a valid ped model. Doar cand intru pe server si imi da automat skin 0, cand imi dau respawn sau ma omor imi da skinul 250(daca il am pus) dar dupa relog imi da id 0 dc?

Link to comment
Share on other sites

8 answers to this question

Recommended Posts

  • 0
2 hours ago, _alchemy said:

#include <a_samp> 

La inceputul script-ului

Foloseste asta in cazul in care folosesti zcmd 


CMD:skin250(playerid, params[]) {
	SetPlayerSkin(playerid, 250);
	SendClientMessage(playerid, -1, "Noul tau skin este : 250");
	return 1;
}

 

Nu are nici o treaba ce vrei tu sa faci, e o porcarie.

Iti da id 0 deoarece nu declari in baza de date skin-ul setat, de aceea nu-ti ramane.

Si in legatura cu skin-ul ca-ti da eroare la ped, voi cauta o rezolvare si revin cu un edit imediat.

Link to comment
Share on other sites

  • 0
Acum 10 ore, Blind[.] a spus:

Nu are nici o treaba ce vrei tu sa faci, e o porcarie.

Iti da id 0 deoarece nu declari in baza de date skin-ul setat, de aceea nu-ti ramane.

Si in legatura cu skin-ul ca-ti da eroare la ped, voi cauta o rezolvare si revin cu un edit imediat.

Si cum declar ?

Link to comment
Share on other sites

  • 0
La 19.07.2019 la 0:53, Blind[.] a spus:

Nu are nici o treaba ce vrei tu sa faci, e o porcarie.

Iti da id 0 deoarece nu declari in baza de date skin-ul setat, de aceea nu-ti ramane.

Si in legatura cu skin-ul ca-ti da eroare la ped, voi cauta o rezolvare si revin cu un edit imediat.

Pai si atunci de ce nu a mentionat ca il vrea setat in baza de date? Poate foloseste ini si nu mysql.

Daca ar fi mentionat ca vrea sa se salveze in baza de date, l-as fi salvat.

Link to comment
Share on other sites

  • 0
Acum 13 ore, Exaton a spus:

Si cum declar ?

CMD:skin(playerid,params[])
{
    new skin, string[128], query[128];
    if(sscanf(params, "d", skin)) SendClientMessage(playerid, -1, "FOLOSIRE: /skin [id]");
    else if(skin < 0 || skin > 311) SendClientMessage(playerid, 0xFF000000, "EROARE: Alege un skin intre 0 si 304!");
    else
    {
        SetPlayerSkin(playerid, skin);
        skin = GetPlayerSkin(playerid);
        format(string, sizeof(string), "SERVER: Noul tau skin este acum: %d", skin);
		mysql_format(conexiunea_ta, query, sizeof(query), "UPDATE players SET skin = '%d' WHERE id = %i", skin, PlayerInfo[playerid][pSQLID]); 
		mysql_pquery(conexiunea_ta, query); 
        SendClientMessage(playerid, -1, string);
    }
    return 1;
}

unde am folosit "conexiunea_ta", "players", "skin" si "id" in mysql_format, tu inlocuieste-le cu numele pe care le ai definite, respectiv table urile din db.

La fel si PlayerInfo. 

Link to comment
Share on other sites

  • 0
On 7/19/2019 at 6:14 PM, Exaton said:

Ma ajuta cnv?

Du-te in baza de date, la tabelul "users", sau cum il ai tu, dupa care apesi pe "Structure", apoi cauti acolo campul "Skin" sau "CChar", nu stiu ce gamemode folosesti. Apesi pe edit si faci urmatoarele setari: default - as defined - 250.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.