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.
new cmd[256], idx, tmp[256];
UpdatePlayer3DTextLabelText(i, PropText, 0x38D71EFF, "Property Aviable!");
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]);
}
new Text3D:moo;
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. |
enum propinfo
{
Float:PropX,
Float:PropY,
Float:PropZ,
new Text3D:PropText[MAX_PROPERTIES];
Probably forgot to add the tag for 3D text:
pawn Код:
|
new Text3D:PropText[MAX_PROPERTIES];
new myEnumVar[propinfo][MAX_PROPERTIES];
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 Код:
(Sorry for bad explanation btw..) |
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.
|
enum propinfo
{
Float:PropX,
Float:PropY,
Float:PropZ,
PickupNr,
}