Witajcie
Nie wiem dlaczego ale nie da si? za?adowa? towaru +10 ton [od 10 do 30], poniewa? wy?wietla informacja ?e nie mo?na a powinno by? tak ?e jak jestem na koncie vip to si? da. Zrobi?em taki kod :
[code]
if(dialogid == T_DIALOG+1)
{
if(response)
{
SetPVarInt(playerid, "T_Block", 0);
if(!IsNumeric(inputtext))
{
ShowPlayerDialog(playerid, T_DIALOG+1, DIALOG_STYLE_INPUT, "?adowanie towaru", "Wpisz ile ton chcesz przetransportowa? (max. 10 [vip max. 30]):", "OK", "Anuluj");
return 1;
}
if(1 > strval(inputtext) || strval(inputtext) > 10 || !strlen(inputtext))
{
SendClientMessage(playerid, KOLOR, "Nie mo?esz za?adowa? wi?cej ni? 10 ton");
ShowPlayerDialog(playerid, T_DIALOG+1, DIALOG_STYLE_INPUT, "?adowanie towaru", "Wpisz ile ton chcesz przetransportowa? (max. 10 [vip max. 30]):", "OK", "Anuluj");
return 1;
}
else
{
if(PlayerInfo[playerid][gPremium]==1)
if(10 > strval(inputtext) || strval(inputtext) > 30 || !strlen(inputtext))
SendClientMessage(playerid, KOLOR, "Czekaj trwa ?adowanie towaru...");
SetPVarInt(playerid, "T_Block", 1);
SetPVarInt(playerid, "T_Ton", strval(inputtext));
SetPVarInt(playerid, "T_Timer", SetTimerEx("T_Laduj", 1000, 1, "dd", play... |