09.04.2012, 19:30
Quote:
|
Como assim? e.e vocк me confundiu agora, vocк estб dizendo porque eu estou a usar var em vez de i? o var й a variavel da public mesmo, ao transferir o i para essa public ela vai se transformar em var e.e esses codes todos estгo no meu gm que eu estou a desenvolver, ai tem coisas que sгo minhas e nгo mostrei para todos kkk'
Espero que sim (: |
pawn Код:
#include <a_samp>
forward oi(var);
stock daroi(id) {
return oi(id);
}
public oi(var) {
return SendClientMessage(id,-1,"oi");
}
Код:
C:\Users\Pedro Miranda.Pedro-PC\Desktop\Script\filterscripts\teste2.pwn(11) : error 017: undefined symbol "id" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
pawn Код:
forward r@LoadHouse(var);
public r@LoadHouse(var){
new rows,fields;
cache_get_data(rows,fields,MysqlC);
cache_get_field_content(0,"owner",query,MysqlC);
strmid(query,HouseInfo[i][hOwner],0,strlen(query),255);
cache_get_field_content(0,"EX",query,MysqlC);
HouseInfo[i][hEX] = floatstr(query);
cache_get_field_content(0,"EZ",query,MysqlC);
HouseInfo[i][hEZ] = floatstr(query);
cache_get_field_content(0,"EZ",query,MysqlC);
HouseInfo[i][hEZ] = floatstr(query);
cache_get_field_content(0,"Interior",query,MysqlC);
HouseInfo[i][hInt] = strval(query);
cache_get_field_content(0,"Mundo",query,MysqlC);
HouseInfo[i][hMundo] = strval(query);
cache_get_field_content(0,"Venda",query,MysqlC);
HouseInfo[i][hVenda] = strval(query);
cache_get_field_content(0,"Preco",query,MysqlC);
HouseInfo[i][hPreco] = strval(query);
CreateExit(i,HouseInfo[i][hInt]);
return 1;
}


