Error 029: invalid expression, assumed zero
#1

Код:
C:\Users\KONT-2016\Desktop\TEMİZ SW\gamemodes\KONT-2016.pwn(13060) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
1 Error.


Код:
stock tdMesajOlustur(playerid)
{
     tdMesajTemizle(playerid);
     for(new i; i < TEXT_SAYI; ++i) {
     tdMesaj[playerid][i] = CreatePlayerTextDraw(playerid, 200.000000, 350.000000 + (i * 12), "_");
     PlayerTextDrawBackgroundColor(playerid, tdMesaj[playerid][i],255);
     PlayerTextDrawFont(playerid, tdMesaj[playerid][i],1);
     PlayerTextDrawLetterSize(playerid, tdMesaj[playerid][i], 0.200000, 1.100000);
     PlayerTextDrawColor(playerid, tdMesaj[playerid][i], -1);
     PlayerTextDrawSetOutline(playerid, tdMesaj[playerid][i],1);
     PlayerTextDrawSetProportional(playerid, tdMesaj[playerid][i],1);
     PlayerTextDrawSetSelectable(playerid, tdMesaj[playerid][i],0);
     PlayerTextDrawShow(playerid, tdMesaj[playerid][i]);
     format(tdMesajStr[playerid][i], TEXT_KARAKTER, "_"); // boş yaparsak textdraw oyuncuya crash attırabilir
     }else{
     SetTimerEx("tdMesajKaldir",5000,false,"d",playerid);
     }
     return 1;
}
Reply
#2

PHP код:
format(tdMesajStr[playerid][i], TEXT_KARAKTER"_"); 
https://sampwiki.blast.hk/wiki/Format

Learn how to format.
Reply
#3

You shouldn't use format for that.
Use this instead:
Код:
#define strcpy(%0,%1) strcat((%0[0] = '\0', %0), %1)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)