why am I getting this warning?
#1

My code
Код:
//on top of script
new matrunpickup;

//under ongamemodeinit
matrunpickup = CreatePickup(1239, 1, 1424.0276, -1319.5800, 13.5547, 0);
Getting this warning
C:\Users\----\Desktop\------\--------- : warning 204: symbol is assigned a value that is never used: "matrunpickup"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Warning.
Reply
#2

Well u need to assign it to something like.


if(matrunpickup(playerid) == 1)
Reply
#3

I put
if (pickupid = matrunpickup)
{
GameTextForPlayer(playerid, "/getmats", 3000, 3);
}

Now I'm getting
warning 211: possibly unintended assignment
Reply
#4

pawn Код:
if(pickupid == matrunpickup)  // You need two "=" symbols.
Reply
#5

Quote:
Originally Posted by Dragonsaurus
Посмотреть сообщение
pawn Код:
if(pickupid == matrunpickup)  // You need two "=" symbols.
Ah thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)