2 Errors
#1

pawn Код:
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(213) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(252) : error 035: argument type mismatch (argument 2)
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(131) : warning 204: symbol is assigned a value that is never used: "tmp"
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(400) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(400) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(400) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(400) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(405) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(405) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(405) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF's Mode\TAF Properties.pwn(405) : warning 213: tag mismatch
C:\Documents and Settings\Liat.LIAT-5FBA01523F\Desktop\pawno\TAF'
s Mode\TAF Properties.pwn(395) : warning 204: symbol is assigned a value that is never used: "text"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
131
pawn Код:
new cmd[256], idx, tmp[256];
213 & 252 (The same line diffrent text)
pawn Код:
UpdatePlayer3DTextLabelText(i, PropText, 0x38D71EFF, "Property Aviable!");
398-407
pawn Код:
if(PropInfo[propid][PropIsBought] == 0)
        {
        Create3DTextLabel("Property Aviable!",0x38D71EFF, PropX, PropY, PropZ+0.75, 20, 0, 0);
        PropInfo[propid][PickupNr]=CreatePickup(1274, 1, PropInfo[propid][PropX], PropInfo[propid][PropY], PropInfo[propid][PropZ]);
        }
        else
        {
        Create3DTextLabel("Property Taken!",0xFF0000FF, PropX, PropY, PropZ+0.75, 20, 0, 0);
        PropInfo[propid][PickupNr]=CreatePickup(1274, 1, PropInfo[propid][PropX], PropInfo[propid][PropY], PropInfo[propid][PropZ]);
        }
What is wrong?
Reply
#2

1st of all: Please stop using php code boxes for pawn codes, use [ pawn ] instead.

Show us your definition on the vars PropX, PropY, PropZ and PropText.
Reply
#3

Probably forgot to add the tag for 3D text:

pawn Код:
new Text3D:moo;
Reply
#4

Quote:
Originally Posted by LarzI
Посмотреть сообщение
1st of all: Please stop using php code boxes for pawn codes, use [ pawn ] instead.

Show us your definition on the vars PropX, PropY, PropZ and PropText.
If it will help to fix the problem earlier than anything.

pawn Код:
enum propinfo
{
    Float:PropX,
    Float:PropY,
    Float:PropZ,
pawn Код:
new Text3D:PropText[MAX_PROPERTIES];
This is an improved property system by Sandra,so it might be easier now.

Quote:
Originally Posted by Vince
Посмотреть сообщение
Probably forgot to add the tag for 3D text:

pawn Код:
new Text3D:moo;
pawn Код:
new Text3D:PropText[MAX_PROPERTIES];
This is what I have
Reply
#5

First of all, you need to make a variable to use the enum, or else it won't be any use of it.
Second of all, you made PropText as an array variable, and you don't use the array in the function.

These are the causes of your errors...

Fill in the array in PropText ([0] for an example. NOTE: the array cells aren't random.)
and make a var using the enum (if you haven't already) and use that instead of PropX
Example:
pawn Код:
new myEnumVar[propinfo][MAX_PROPERTIES];
Good luck!
(Sorry for bad explanation btw..)
Reply
#6

Quote:
Originally Posted by LarzI
Посмотреть сообщение
First of all, you need to make a variable to use the enum, or else it won't be any use of it.
Second of all, you made PropText as an array variable, and you don't use the array in the function.

These are the causes of your errors...

Fill in the array in PropText ([0] for an example. NOTE: the array cells aren't random.)
and make a var using the enum (if you haven't already) and use that instead of PropX
Example:
pawn Код:
new myEnumVar[propinfo][MAX_PROPERTIES];
Good luck!
(Sorry for bad explanation btw..)
Yes it is very bad explenation
Can you explain better??
Reply
#7

Bump....
Reply
#8

I don't know how to explain this. You should learn how arrays and all that stuff works before trying to make (or C&P, which it seems that you have done) this kind of code.
Reply
#9

Quote:
Originally Posted by LarzI
Посмотреть сообщение
I don't know how to explain this. You should learn how arrays and all that stuff works before trying to make (or C&P, which it seems that you have done) this kind of code.
Just do an example...

Quote:
Originally Posted by [AU]StarScream
Посмотреть сообщение
Lol DDDDDDDDDDDDDDDDDDDDDD
Off topic...
Reply
#10

This function: UpdatePlayer3DTextLabelText(i, PropText, 0x38D71EFF, "Property Aviable!"); need have only 3 arguments, so change to UpdatePlayer3DTextLabelText(PropText[i], 0x38D71EFF, "Property Aviable!");

PropInfo is diferent of propinfo, so, change to propinfo in the line 400 and add to enum the array PickupNr.
pawn Код:
enum propinfo
{
    Float:PropX,
    Float:PropY,
    Float:PropZ,
    PickupNr,
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)